|
19 | 19 | import com.ibm.watson.compare_comply.v1.model.BatchStatus; |
20 | 20 | import com.ibm.watson.compare_comply.v1.model.Batches; |
21 | 21 | import com.ibm.watson.compare_comply.v1.model.Category; |
22 | | -import com.ibm.watson.compare_comply.v1.model.CategoryComparison; |
23 | 22 | import com.ibm.watson.compare_comply.v1.model.ClassifyElementsOptions; |
24 | 23 | import com.ibm.watson.compare_comply.v1.model.ClassifyReturn; |
25 | 24 | import com.ibm.watson.compare_comply.v1.model.CompareDocumentsOptions; |
26 | 25 | import com.ibm.watson.compare_comply.v1.model.CompareReturn; |
27 | 26 | import com.ibm.watson.compare_comply.v1.model.ContractAmts; |
| 27 | +import com.ibm.watson.compare_comply.v1.model.ContractType; |
28 | 28 | import com.ibm.watson.compare_comply.v1.model.ConvertToHtmlOptions; |
29 | 29 | import com.ibm.watson.compare_comply.v1.model.CreateBatchOptions; |
30 | 30 | import com.ibm.watson.compare_comply.v1.model.DeleteFeedbackOptions; |
@@ -622,6 +622,14 @@ public void testClassifyElements() throws FileNotFoundException, InterruptedExce |
622 | 622 | response.getTables().get(0).getBodyCells().get(0).getAttributes().get(0).getLocation().getBegin()); |
623 | 623 | assertEquals(END, |
624 | 624 | response.getTables().get(0).getBodyCells().get(0).getAttributes().get(0).getLocation().getEnd()); |
| 625 | + assertEquals(CELL_ID, response.getTables().get(0).getKeyValuePairs().get(0).getKey().getCellId()); |
| 626 | + assertEquals(BEGIN, response.getTables().get(0).getKeyValuePairs().get(0).getKey().getLocation().getBegin()); |
| 627 | + assertEquals(END, response.getTables().get(0).getKeyValuePairs().get(0).getKey().getLocation().getEnd()); |
| 628 | + assertEquals(TEXT, response.getTables().get(0).getKeyValuePairs().get(0).getKey().getText()); |
| 629 | + assertEquals(CELL_ID, response.getTables().get(0).getKeyValuePairs().get(0).getValue().getCellId()); |
| 630 | + assertEquals(BEGIN, response.getTables().get(0).getKeyValuePairs().get(0).getValue().getLocation().getBegin()); |
| 631 | + assertEquals(END, response.getTables().get(0).getKeyValuePairs().get(0).getValue().getLocation().getEnd()); |
| 632 | + assertEquals(TEXT, response.getTables().get(0).getKeyValuePairs().get(0).getValue().getText()); |
625 | 633 | assertEquals(TEXT, response.getDocumentStructure().getSectionTitles().get(0).getText()); |
626 | 634 | assertEquals(BEGIN, response.getDocumentStructure().getSectionTitles().get(0).getLocation().getBegin()); |
627 | 635 | assertEquals(END, response.getDocumentStructure().getSectionTitles().get(0).getLocation().getEnd()); |
@@ -657,6 +665,10 @@ public void testClassifyElements() throws FileNotFoundException, InterruptedExce |
657 | 665 | assertEquals(BEGIN, response.getTerminationDates().get(0).getLocation().getBegin()); |
658 | 666 | assertEquals(END, response.getTerminationDates().get(0).getLocation().getEnd()); |
659 | 667 | assertEquals(TerminationDates.ConfidenceLevel.HIGH, response.getTerminationDates().get(0).getConfidenceLevel()); |
| 668 | + assertEquals(TEXT, response.getContractType().get(0).getText()); |
| 669 | + assertEquals(BEGIN, response.getContractType().get(0).getLocation().getBegin()); |
| 670 | + assertEquals(END, response.getContractType().get(0).getLocation().getEnd()); |
| 671 | + assertEquals(ContractType.ConfidenceLevel.HIGH, response.getContractType().get(0).getConfidenceLevel()); |
660 | 672 | } |
661 | 673 |
|
662 | 674 | @Test |
@@ -728,6 +740,14 @@ public void testExtractTables() throws FileNotFoundException, InterruptedExcepti |
728 | 740 | response.getTables().get(0).getBodyCells().get(0).getAttributes().get(0).getLocation().getBegin()); |
729 | 741 | assertEquals(END, |
730 | 742 | response.getTables().get(0).getBodyCells().get(0).getAttributes().get(0).getLocation().getEnd()); |
| 743 | + assertEquals(CELL_ID, response.getTables().get(0).getKeyValuePairs().get(0).getKey().getCellId()); |
| 744 | + assertEquals(BEGIN, response.getTables().get(0).getKeyValuePairs().get(0).getKey().getLocation().getBegin()); |
| 745 | + assertEquals(END, response.getTables().get(0).getKeyValuePairs().get(0).getKey().getLocation().getEnd()); |
| 746 | + assertEquals(TEXT, response.getTables().get(0).getKeyValuePairs().get(0).getKey().getText()); |
| 747 | + assertEquals(CELL_ID, response.getTables().get(0).getKeyValuePairs().get(0).getValue().getCellId()); |
| 748 | + assertEquals(BEGIN, response.getTables().get(0).getKeyValuePairs().get(0).getValue().getLocation().getBegin()); |
| 749 | + assertEquals(END, response.getTables().get(0).getKeyValuePairs().get(0).getValue().getLocation().getEnd()); |
| 750 | + assertEquals(TEXT, response.getTables().get(0).getKeyValuePairs().get(0).getValue().getText()); |
731 | 751 | } |
732 | 752 |
|
733 | 753 | @Test |
|
0 commit comments