Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. @Test
  2. public void rejectConflictingSoftMatches() {
  3.  
  4. List<CPTCode> sourceCodes = new ArrayList<>();
  5. CPTCode firstSource = new CPTCode("99214","25");
  6. CPTCode secondSource = new CPTCode("99214","23");
  7. sourceCodes.add(firstSource);
  8. sourceCodes.add(secondSource);
  9.  
  10. CPTCode firstTarget = new CPTCode("99213","");
  11. CPTCode secondTarget = new CPTCode("99214","26");
  12.  
  13. List<CPTCode> targetCodes = new ArrayList<>();
  14. targetCodes.add(firstTarget);
  15. targetCodes.add(secondTarget);
  16.  
  17. SoftMatcher softMatcher = new SoftMatcher();
  18. ReconciliationResult result = softMatcher.reconcile(sourceCodes,targetCodes);
  19.  
  20. assertEquals(0,result.matches().size());
  21.  
  22. assertEquals("Source List should not be altered",2,sourceCodes.size());
  23. assertEquals("Target List should not be altered",2,targetCodes.size());
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement