Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. @Test
  2. public void discoverPerfectMatches() {
  3.  
  4. PerfectMatcher perfectMatcher = new PerfectMatcher();
  5. ReconciliationResult result = perfectMatcher.reconcile(manualCodes,targetCodes);
  6.  
  7. Match match = result.matches().get(0);
  8.  
  9. assertEquals(secondTarget,match.manualCode);
  10. assertEquals(secondTarget,match.targetCode);
  11.  
  12. int sourceIndex = manualCodes.indexOf(match.manualCode);
  13. int targetIndex = targetCodes.indexOf(match.targetCode);
  14.  
  15. assertEquals("Should be removed from the source List",-1,sourceIndex);
  16. assertEquals("Should be removed from the target List",-1,targetIndex);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement