Update tests to reflect new reality
This commit is contained in:
parent
a0c11d7c66
commit
346c9d783c
|
@ -455,11 +455,12 @@ public class InterceptorServiceTest {
|
|||
params.add(String.class, "D");
|
||||
params.add(String.class, "E");
|
||||
params.add(String.class, "F");
|
||||
params.add(String.class, "G");
|
||||
try {
|
||||
svc.haveAppropriateParams(Pointcut.STORAGE_PRECOMMIT_RESOURCE_UPDATED, params);
|
||||
fail();
|
||||
} catch (IllegalArgumentException e) {
|
||||
assertEquals("Wrong number of params for pointcut STORAGE_PRECOMMIT_RESOURCE_UPDATED - Wanted ca.uhn.fhir.rest.api.server.RequestDetails,ca.uhn.fhir.rest.api.server.storage.TransactionDetails,ca.uhn.fhir.rest.server.servlet.ServletRequestDetails,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IBaseResource but found [String, String, String, String, String, String]", e.getMessage());
|
||||
assertEquals("Wrong number of params for pointcut STORAGE_PRECOMMIT_RESOURCE_UPDATED - Wanted ca.uhn.fhir.rest.api.server.RequestDetails,ca.uhn.fhir.rest.api.server.storage.TransactionDetails,ca.uhn.fhir.rest.server.servlet.ServletRequestDetails,java.lang.Boolean,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IBaseResource but found [String, String, String, String, String, String, String]", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -474,6 +475,7 @@ public class InterceptorServiceTest {
|
|||
params.add((Class) String.class, 3);
|
||||
params.add((Class) String.class, 4);
|
||||
params.add((Class) String.class, 5);
|
||||
params.add((Class) String.class, 6);
|
||||
try {
|
||||
svc.haveAppropriateParams(Pointcut.STORAGE_PRECOMMIT_RESOURCE_UPDATED, params);
|
||||
fail();
|
||||
|
|
Loading…
Reference in New Issue