Skip to content

Commit c0d0bb2

Browse files
committed
test(Compare and Comply): Update unit tests
1 parent 251be37 commit c0d0bb2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
import java.util.Locale;
6363

6464
import static org.junit.Assert.assertEquals;
65+
import static org.junit.Assert.assertTrue;
6566

6667
public class CompareComplyTest extends WatsonServiceUnitTest {
6768
private static final String VERSION = "2018-10-15";
@@ -767,6 +768,7 @@ public void testCompareDocuments() throws FileNotFoundException, InterruptedExce
767768
response.getAlignedElements().get(0).getElementPair().get(0).getAttributes().get(0).getLocation().getEnd());
768769
assertEquals(true, response.getAlignedElements().get(0).isIdenticalText());
769770
assertEquals(PROVENANCE_ID, response.getAlignedElements().get(0).getProvenanceIds().get(0));
771+
assertTrue(response.getAlignedElements().get(0).isSignificantElements());
770772
assertEquals(DOCUMENT_LABEL, response.getUnalignedElements().get(0).getDocumentLabel());
771773
assertEquals(TEXT, response.getUnalignedElements().get(0).getText());
772774
assertEquals(BEGIN, response.getUnalignedElements().get(0).getLocation().getBegin());

compare-comply/src/test/resources/compare_comply/compare-return.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"identical_text": true,
5252
"provenance_ids": [
5353
"provenance_id"
54-
]
54+
],
55+
"significant_elements": true
5556
}
5657
],
5758
"unaligned_elements": [

0 commit comments

Comments
 (0)