Skip to content

Commit e03192f

Browse files
feat(compare-comply): generated code
chore(compare-comply): manual changes chore(compare-comply): manual changes
1 parent 65f5d55 commit e03192f

File tree

5 files changed

+26
-31
lines changed

5 files changed

+26
-31
lines changed

compare-comply/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Installation
44

55
##### Maven
6+
67
```xml
78
<dependency>
89
<groupId>com.ibm.watson</groupId>
@@ -12,12 +13,15 @@
1213
```
1314

1415
##### Gradle
16+
1517
```gradle
1618
'com.ibm.watson.developer_cloud:compare-comply:8.2.1'
1719
```
1820

1921
## Usage
20-
Use the [Compare and Comply](https://cloud.ibm.com/docs/services/compare-comply/index.html#about) service to enable better and faster document understanding. Below is an example of converting a PDF file into HTML:
22+
23+
Use the [Compare and Comply](https://cloud.ibm.com/docs/compare-comply/index.html#about) service to enable better and faster document understanding. Below is an example of converting a PDF file into HTML:
24+
2125
```java
2226
Authenticator authenticator = new IamAuthenticator("<iam_api_key>");
2327
CompareComply service = new CompareComply("2018-10-15", authenticator);

compare-comply/src/main/java/com/ibm/watson/compare_comply/v1/CompareComply.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* documents.
5454
*
5555
* @version v1
56-
* @see <a href="https://cloud.ibm.com/docs/services/compare-comply?topic=compare-comply-about">Compare Comply</a>
56+
* @see <a href="https://cloud.ibm.com/docs/compare-comply?topic=compare-comply-about">Compare Comply</a>
5757
*/
5858
public class CompareComply extends BaseService {
5959

@@ -447,10 +447,10 @@ public ServiceCall<FeedbackDeleted> deleteFeedback(DeleteFeedbackOptions deleteF
447447
*
448448
* **Important:** Batch processing requires the use of the [IBM Cloud Object Storage
449449
* service]
450-
* (https://cloud.ibm.com/docs/services/cloud-object-storage?
450+
* (https://cloud.ibm.com/docs/cloud-object-storage?
451451
* topic=cloud-object-storage-about#about-ibm-cloud-object-storage).
452452
* The use of IBM Cloud Object Storage with Compare and Comply is discussed at [Using batch
453-
* processing](https://cloud.ibm.com/docs/services/compare-comply?topic=compare-comply-batching#before-you-batch).
453+
* processing](https://cloud.ibm.com/docs/compare-comply?topic=compare-comply-batching#before-you-batch).
454454
*
455455
* @param createBatchOptions the {@link CreateBatchOptions} containing the options for the call
456456
* @return a {@link ServiceCall} with a response type of {@link BatchStatus}

compare-comply/src/test/java/com/ibm/watson/compare_comply/v1/CompareComplyServiceIT.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import com.ibm.watson.compare_comply.v1.model.UpdateBatchOptions;
3131
import com.ibm.watson.compare_comply.v1.model.UpdatedLabelsIn;
3232
import org.junit.Before;
33+
import org.junit.Ignore;
3334
import org.junit.Test;
3435
import org.junit.runner.RunWith;
3536

@@ -52,10 +53,9 @@ public class CompareComplyServiceIT extends CompareComplyServiceTest {
5253
private static final File CONTRACT_A = new File(RESOURCE + "contract-a.pdf");
5354
private static final File CONTRACT_B = new File(RESOURCE + "contract-b.pdf");
5455
private static final File TABLE_FILE = new File(RESOURCE + "test-table.png");
55-
private static final File INPUT_CREDENTIALS_FILE =
56-
new File(RESOURCE + "cloud-object-storage-credentials-input.json");
57-
private static final File OUTPUT_CREDENTIALS_FILE =
58-
new File(RESOURCE + "cloud-object-storage-credentials-output.json");
56+
private static final File INPUT_CREDENTIALS_FILE = new File(RESOURCE + "cloud-object-storage-credentials-input.json");
57+
private static final File OUTPUT_CREDENTIALS_FILE = new File(RESOURCE
58+
+ "cloud-object-storage-credentials-output.json");
5959

6060
private CompareComply service;
6161

@@ -213,6 +213,7 @@ public void testFeedbackOperations() {
213213
}
214214

215215
@Test
216+
@Ignore
216217
public void testBatchOperations() throws FileNotFoundException {
217218
String bucketLocation = "us-south";
218219
String inputBucketName = "compare-comply-integration-test-bucket-input";

compare-comply/src/test/java/com/ibm/watson/compare_comply/v1/CompareComplyServiceTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public CompareComply getService() {
1616
}
1717

1818
/*
19-
* (non-Javadoc)
20-
* @see com.ibm.watson.developer_cloud.WatsonServiceTest#setUp()
21-
*/
19+
* (non-Javadoc)
20+
* @see com.ibm.watson.developer_cloud.WatsonServiceTest#setUp()
21+
*/
2222
@Override
2323
@Before
2424
public void setUp() throws Exception {

compare-comply/src/test/java/com/ibm/watson/compare_comply/v1/CompareComplyTest.java

+10-20
Original file line numberDiff line numberDiff line change
@@ -142,49 +142,39 @@ public class CompareComplyTest extends WatsonServiceUnitTest {
142142

143143
private static final String CONVERT_TO_HTML_PATH = String.format(
144144
"/v1/html_conversion?version=%s",
145-
VERSION
146-
);
145+
VERSION);
147146
private static final String CLASSIFY_ELEMENTS_PATH = String.format(
148147
"/v1/element_classification?version=%s",
149-
VERSION
150-
);
148+
VERSION);
151149
private static final String EXTRACT_TABLES_PATH = String.format(
152150
"/v1/tables?version=%s",
153-
VERSION
154-
);
151+
VERSION);
155152
private static final String COMPARE_DOCUMENTS_PATH = String.format(
156153
"/v1/comparison?version=%s",
157-
VERSION
158-
);
154+
VERSION);
159155
private static final String FEEDBACK_PATH = String.format(
160156
"/v1/feedback?version=%s",
161-
VERSION
162-
);
157+
VERSION);
163158
private static final String SPECIFIC_FEEDBACK_PATH = String.format(
164159
"/v1/feedback/%s?version=%s",
165160
FEEDBACK_ID,
166-
VERSION
167-
);
161+
VERSION);
168162
private static final String CREATE_BATCH_PATH = String.format(
169163
"/v1/batches?version=%s&function=%s",
170164
VERSION,
171-
CreateBatchOptions.Function.ELEMENT_CLASSIFICATION
172-
);
165+
CreateBatchOptions.Function.ELEMENT_CLASSIFICATION);
173166
private static final String GET_BATCH_PATH = String.format(
174167
"/v1/batches/%s?version=%s",
175168
BATCH_ID,
176-
VERSION
177-
);
169+
VERSION);
178170
private static final String LIST_BATCHES_PATH = String.format(
179171
"/v1/batches?version=%s",
180-
VERSION
181-
);
172+
VERSION);
182173
private static final String UPDATE_BATCH_PATH = String.format(
183174
"/v1/batches/%s?version=%s&action=%s",
184175
BATCH_ID,
185176
VERSION,
186-
UpdateBatchOptions.Action.CANCEL
187-
);
177+
UpdateBatchOptions.Action.CANCEL);
188178

189179
private CompareComply service;
190180
private Date testDateValue;

0 commit comments

Comments
 (0)