Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mfriesen committed Dec 30, 2024
1 parent ddb61b5 commit 56f7995
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
/** Unit Tests for request /documents/upload, /documents/{documentId}/upload . */
public class DocumentsUploadRequestTest extends AbstractApiClientRequestTest {

/** Ten. */
private static final int TEN = 10;

/**
* Get Request Upload Document Url, MAX DocumentGreater than allowed.
*
Expand Down Expand Up @@ -719,7 +722,7 @@ public void testPost11() throws Exception {

// when
try {
this.documentsApi.addDocumentUpload(req, siteId, 10, null, null);
this.documentsApi.addDocumentUpload(req, siteId, TEN, null, null);
fail();
} catch (ApiException e) {
// then
Expand Down Expand Up @@ -752,13 +755,13 @@ public void testPost12() throws Exception {

// when
try {
this.documentsApi.addDocumentUpload(req, siteId, 10, null, null);
this.documentsApi.addDocumentUpload(req, siteId, TEN, null, null);
fail();
} catch (ApiException e) {
// then
assertEquals(SC_BAD_REQUEST.getStatusCode(), e.getCode());
assertEquals("{\"message\":\"'contentLength' is required when MaxContentLengthBytes is configured\"}",
e.getResponseBody());
assertEquals("{\"message\":\"'contentLength' is required when "
+ "MaxContentLengthBytes is configured\"}", e.getResponseBody());
}
}
}
Expand Down

0 comments on commit 56f7995

Please sign in to comment.