2424package com .formkiq .stacks .api .awstest ;
2525
2626import static com .formkiq .testutils .aws .FkqDocumentService .addDocument ;
27- import static com .formkiq .testutils .aws .FkqDocumentService .waitForDocumentContent ;
2827import static com .formkiq .testutils .aws .FkqDocumentService .waitForDocumentContentType ;
2928import static org .junit .jupiter .api .Assertions .assertEquals ;
3029import java .nio .charset .StandardCharsets ;
31- import java . util . concurrent . TimeUnit ;
30+
3231import org .junit .jupiter .api .Test ;
3332import org .junit .jupiter .api .Timeout ;
3433import com .formkiq .client .invoker .ApiClient ;
@@ -50,20 +49,19 @@ public class DocumentsDocumentIdUrlRequestTest extends AbstractAwsIntegrationTes
5049 * @throws Exception Exception
5150 */
5251 @ Test
53- @ Timeout (unit = TimeUnit . SECONDS , value = TEST_TIMEOUT )
52+ @ Timeout (value = TEST_TIMEOUT )
5453 public void testGet01 () throws Exception {
5554 for (ApiClient client : getApiClients (null )) {
5655 // given
57- String siteId = null ;
5856 String text = "sample content" ;
5957 byte [] content = text .getBytes (StandardCharsets .UTF_8 );
6058
6159 // when
62- String documentId = addDocument (client , siteId , null , content , "text/plain" , null );
60+ String documentId = addDocument (client , null , null , content , "text/plain" , null );
6361
6462 // then
6563 GetDocumentContentResponse response =
66- waitForDocumentContentType (client , siteId , documentId , "text/plain" );
64+ waitForDocumentContentType (client , null , documentId , "text/plain" );
6765
6866 assertEquals ("text/plain" , response .getContentType ());
6967 assertEquals (text , response .getContent ());
0 commit comments