Package ca.uhn.fhir.test.utilities
Class RestServerDstu3Helper
java.lang.Object
ca.uhn.fhir.test.utilities.BaseRestServerHelper
ca.uhn.fhir.test.utilities.RestServerDstu3Helper
- All Implemented Interfaces:
IPointcutLatch,org.junit.jupiter.api.extension.AfterEachCallback,org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension
public class RestServerDstu3Helper
extends BaseRestServerHelper
implements IPointcutLatch, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ca.uhn.fhir.test.utilities.RestServerDstu3Helper.MyRestfulServerFields inherited from class ca.uhn.fhir.test.utilities.BaseRestServerHelper
myBase, myClient, myFhirContext, myHttpsListenerPort, myListenerPort, myListenerServer, mySecureBase, myTlsAuthenticationTestHelper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterEach(org.junit.jupiter.api.extension.ExtensionContext context) List<ca.uhn.fhir.interceptor.api.HookParams>voidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext context) voidclear()voidvoidorg.hl7.fhir.instance.model.api.IIdTypecreateObservation(org.hl7.fhir.instance.model.api.IBaseResource theBaseResource) org.hl7.fhir.instance.model.api.IIdTypecreateObservationForPatient(org.hl7.fhir.instance.model.api.IIdType theFirstTargetPatientId) org.hl7.fhir.instance.model.api.IIdTypecreatePatient(org.hl7.fhir.instance.model.api.IBaseResource theBaseResource) org.hl7.fhir.instance.model.api.IIdTypecreatePatientWithId(String theId) ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.dstu3.model.ConceptMap>longlonglonglongca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.dstu3.model.Observation>longlonglonglongca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.dstu3.model.Patient>booleanregisterInterceptor(Object theInterceptor) voidregisterProvider(Object theProvider) voidsetConceptMapResourceProvider(ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.dstu3.model.ConceptMap> theResourceProvider) voidsetExpectedCount(int theCount) voidsetFailNextPut(boolean theFailNextPut) protected voidsetServerAddressStrategy(ca.uhn.fhir.rest.server.IServerAddressStrategy theServerAddressStrategy) voidunregisterInterceptor(Object theInterceptor) Methods inherited from class ca.uhn.fhir.test.utilities.BaseRestServerHelper
afterEach, getBase, getClient, getSecureBase, setServerAddressStrategy, startServer, stop
-
Field Details
-
myRestServer
-
-
Constructor Details
-
RestServerDstu3Helper
public RestServerDstu3Helper() -
RestServerDstu3Helper
-
-
Method Details
-
beforeEach
- Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback- Throws:
Exception
-
afterEach
- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback- Throws:
Exception
-
clearDataAndCounts
- Specified by:
clearDataAndCountsin classBaseRestServerHelper
-
setFailNextPut
- Specified by:
setFailNextPutin classBaseRestServerHelper
-
getInterceptors
- Specified by:
getInterceptorsin classBaseRestServerHelper
-
unregisterInterceptor
- Specified by:
unregisterInterceptorin classBaseRestServerHelper
-
clearCounts
- Specified by:
clearCountsin classBaseRestServerHelper
-
getPatientCountSearch
- Specified by:
getPatientCountSearchin classBaseRestServerHelper
-
getPatientCountDelete
- Specified by:
getPatientCountDeletein classBaseRestServerHelper
-
getPatientCountUpdate
- Specified by:
getPatientCountUpdatein classBaseRestServerHelper
-
getPatientCountRead
- Specified by:
getPatientCountReadin classBaseRestServerHelper
-
getObservationCountSearch
- Specified by:
getObservationCountSearchin classBaseRestServerHelper
-
getObservationCountDelete
- Specified by:
getObservationCountDeletein classBaseRestServerHelper
-
getObservationCountUpdate
- Specified by:
getObservationCountUpdatein classBaseRestServerHelper
-
getObservationCountRead
- Specified by:
getObservationCountReadin classBaseRestServerHelper
-
registerInterceptor
- Specified by:
registerInterceptorin classBaseRestServerHelper
-
clear
- Specified by:
clearin interfaceIPointcutLatch
-
setExpectedCount
- Specified by:
setExpectedCountin interfaceIPointcutLatch
-
awaitExpected
- Specified by:
awaitExpectedin interfaceIPointcutLatch- Throws:
InterruptedException
-
registerProvider
-
getObservationResourceProvider
public ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.dstu3.model.Observation> getObservationResourceProvider()- Specified by:
getObservationResourceProviderin classBaseRestServerHelper
-
getPatientResourceProvider
public ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.dstu3.model.Patient> getPatientResourceProvider()- Specified by:
getPatientResourceProviderin classBaseRestServerHelper
-
getConceptMapResourceProvider
public ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.dstu3.model.ConceptMap> getConceptMapResourceProvider()- Specified by:
getConceptMapResourceProviderin classBaseRestServerHelper
-
createPatientWithId
- Specified by:
createPatientWithIdin classBaseRestServerHelper
-
createPatient
public org.hl7.fhir.instance.model.api.IIdType createPatient(org.hl7.fhir.instance.model.api.IBaseResource theBaseResource) - Specified by:
createPatientin classBaseRestServerHelper
-
createObservationForPatient
public org.hl7.fhir.instance.model.api.IIdType createObservationForPatient(org.hl7.fhir.instance.model.api.IIdType theFirstTargetPatientId) - Specified by:
createObservationForPatientin classBaseRestServerHelper
-
createObservation
public org.hl7.fhir.instance.model.api.IIdType createObservation(org.hl7.fhir.instance.model.api.IBaseResource theBaseResource) - Specified by:
createObservationin classBaseRestServerHelper
-
setServerAddressStrategy
protected void setServerAddressStrategy(ca.uhn.fhir.rest.server.IServerAddressStrategy theServerAddressStrategy) - Specified by:
setServerAddressStrategyin classBaseRestServerHelper
-
setConceptMapResourceProvider
public void setConceptMapResourceProvider(ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.dstu3.model.ConceptMap> theResourceProvider)
-