Restore commented method verification (#1566)

This commit is contained in:
dotasek 2024-02-20 11:04:32 -05:00 committed by GitHub
parent 70505b1704
commit e42079e482
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 1 deletions

View File

@ -123,6 +123,16 @@ public class SimpleWorkerContextTests {
}
}
public class CodingMatcher implements ArgumentMatcher<Coding> {
final private Coding left;
CodingMatcher(Coding left) { this.left = left; }
public boolean matches(Coding right) {
return left.equalsShallow(right);
}
}
public class ParametersMatcher implements ArgumentMatcher<Parameters> {
final private Parameters left;
@ -187,7 +197,7 @@ public class SimpleWorkerContextTests {
assertEquals(expectedValidationResult, actualValidationResult);
// Mockito.verify(valueSetCheckerSimple).validateCode("Coding", coding);
Mockito.verify(valueSetCheckerSimple).validateCode(eq("Coding"), argThat(new CodingMatcher(coding)));
Mockito.verify(terminologyCache).getValidation(cacheToken);
Mockito.verify(terminologyCache).cacheValidation(cacheToken, expectedValidationResult,false);
}