Skip to content

Commit 6d99481

Browse files
committed
Regenerated with new templates
1 parent d821546 commit 6d99481

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,4 @@ Authentication schemes defined for the API:
217217
## Recommendation
218218

219219
It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
220+

src/test/java/com/aspose/barcode/cloud/api/GenerateApiUnitTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,7 @@ public void testGenerateBodyAsync_CallsEnqueue() throws ApiException {
321321

322322
@Test(expected = ApiException.class)
323323
public void testGenerateMultipart_CallsExecute() throws ApiException {
324-
api.generateMultipart(
325-
new GenerateMultipartRequestWrapper(EncodeBarcodeType.QR, "test"));
324+
api.generateMultipart(new GenerateMultipartRequestWrapper(EncodeBarcodeType.QR, "test"));
326325
}
327326

328327
@Test(expected = ApiException.class)

src/test/java/com/aspose/barcode/cloud/api/RecognizeApiUnitTest.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import com.aspose.barcode.cloud.ApiException;
88
import com.aspose.barcode.cloud.model.BarcodeResponseList;
99
import com.aspose.barcode.cloud.model.DecodeBarcodeType;
10-
import com.aspose.barcode.cloud.model.RecognizeBase64Request;
1110
import com.aspose.barcode.cloud.model.RecognitionImageKind;
1211
import com.aspose.barcode.cloud.model.RecognitionMode;
12+
import com.aspose.barcode.cloud.model.RecognizeBase64Request;
1313
import com.aspose.barcode.cloud.requests.RecognizeBase64RequestWrapper;
1414
import com.aspose.barcode.cloud.requests.RecognizeMultipartRequestWrapper;
1515
import com.aspose.barcode.cloud.requests.RecognizeRequestWrapper;
@@ -51,7 +51,8 @@ public void testRecognize_NullFileUrl_ThrowsApiException() throws Exception {
5151
@Test
5252
public void testRecognize_NullBarcodeType_ErrorMessage() throws Exception {
5353
try {
54-
api.recognize(new RecognizeRequestWrapper(null, new URI("https://example.com/img.png")));
54+
api.recognize(
55+
new RecognizeRequestWrapper(null, new URI("https://example.com/img.png")));
5556
fail("Expected ApiException");
5657
} catch (ApiException e) {
5758
assertTrue(e.getMessage().contains("request.barcodeType"));
@@ -85,14 +86,12 @@ public void testRecognizeBase64_NullRequest_ErrorMessage() {
8586

8687
@Test(expected = ApiException.class)
8788
public void testRecognizeMultipart_NullBarcodeType_ThrowsApiException() throws ApiException {
88-
api.recognizeMultipart(
89-
new RecognizeMultipartRequestWrapper(null, new File("dummy.png")));
89+
api.recognizeMultipart(new RecognizeMultipartRequestWrapper(null, new File("dummy.png")));
9090
}
9191

9292
@Test(expected = ApiException.class)
9393
public void testRecognizeMultipart_NullFile_ThrowsApiException() throws ApiException {
94-
api.recognizeMultipart(
95-
new RecognizeMultipartRequestWrapper(DecodeBarcodeType.QR, null));
94+
api.recognizeMultipart(new RecognizeMultipartRequestWrapper(DecodeBarcodeType.QR, null));
9695
}
9796

9897
@Test

src/test/java/com/aspose/barcode/cloud/api/ScanApiUnitTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.aspose.barcode.cloud.ApiCallback;
66
import com.aspose.barcode.cloud.ApiClient;
77
import com.aspose.barcode.cloud.ApiException;
8+
import com.aspose.barcode.cloud.model.BarcodeResponseList;
89
import com.aspose.barcode.cloud.model.ScanBase64Request;
910
import com.aspose.barcode.cloud.requests.ScanBase64RequestWrapper;
1011
import com.aspose.barcode.cloud.requests.ScanMultipartRequestWrapper;
@@ -15,8 +16,6 @@
1516
import org.junit.BeforeClass;
1617
import org.junit.Test;
1718

18-
import com.aspose.barcode.cloud.model.BarcodeResponseList;
19-
2019
import java.io.File;
2120
import java.net.URI;
2221
import java.util.List;
@@ -107,7 +106,8 @@ public void testScanBase64Call_PathAndMethod() throws ApiException {
107106

108107
@Test
109108
public void testScanMultipartCall_PathAndMethod() throws ApiException {
110-
ScanMultipartRequestWrapper request = new ScanMultipartRequestWrapper(new File("dummy.png"));
109+
ScanMultipartRequestWrapper request =
110+
new ScanMultipartRequestWrapper(new File("dummy.png"));
111111
Request httpRequest = api.scanMultipartCall(request, null, null).request();
112112
assertTrue(httpRequest.url().toString().contains("/barcode/scan-multipart"));
113113
assertEquals("POST", httpRequest.method());
@@ -143,7 +143,8 @@ public void testScanBase64Call_HasBody() throws ApiException {
143143

144144
@Test
145145
public void testScanMultipartCall_ContentTypeMultipart() throws ApiException {
146-
ScanMultipartRequestWrapper request = new ScanMultipartRequestWrapper(new File("dummy.png"));
146+
ScanMultipartRequestWrapper request =
147+
new ScanMultipartRequestWrapper(new File("dummy.png"));
147148
Request httpRequest = api.scanMultipartCall(request, null, null).request();
148149
String contentType = httpRequest.header("Content-Type");
149150
assertTrue(contentType.contains("multipart/form-data"));

0 commit comments

Comments
 (0)