Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void discoverPerfectMatches() {
- …
- …
- PerfectMatcher perfectMatcher = new PerfectMatcher();
- ReconciliationResult result = perfectMatcher.reconcile(manualCodes,targetCodes);
- Match match = result.matches().get(0);
- assertEquals(secondTarget,match.manualCode);
- assertEquals(secondTarget,match.targetCode);
- int sourceIndex = manualCodes.indexOf(match.manualCode);
- int targetIndex = targetCodes.indexOf(match.targetCode);
- assertEquals("Should be removed from the source List",-1,sourceIndex);
- assertEquals("Should be removed from the target List",-1,targetIndex);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement