Package ca.uhn.fhir.test.utilities
Class RestServerR4Helper
java.lang.Object
ca.uhn.fhir.test.utilities.BaseRestServerHelper
ca.uhn.fhir.test.utilities.RestServerR4Helper
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterEachCallback,org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension
public class RestServerR4Helper
extends BaseRestServerHelper
implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ca.uhn.fhir.test.utilities.RestServerR4Helper.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) 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 thePatientId) 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.r4.model.ConceptMap>ca.uhn.fhir.interceptor.api.IInterceptorServicelonglonglonglongca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.r4.model.Observation>longlonglonglongca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.r4.model.Patient>List<org.hl7.fhir.r4.model.Bundle>booleanregisterInterceptor(Object theInterceptor) voidregisterProvider(Object theProvider) voidsetConceptMapResourceProvider(ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.r4.model.ConceptMap> theResourceProvider) voidsetExpectedCount(int theCount) voidsetFailNextPut(boolean theFailNextPut) voidsetObservationResourceProvider(ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.r4.model.Observation> theResourceProvider) 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
-
RestServerR4Helper
public RestServerR4Helper() -
RestServerR4Helper
-
-
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
-
getTransactions
-
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
-
registerProvider
-
setExpectedCount
-
awaitExpected
- Throws:
InterruptedException
-
getObservationResourceProvider
public ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.r4.model.Observation> getObservationResourceProvider()- Specified by:
getObservationResourceProviderin classBaseRestServerHelper
-
setObservationResourceProvider
public void setObservationResourceProvider(ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.r4.model.Observation> theResourceProvider) -
getPatientResourceProvider
public ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.r4.model.Patient> getPatientResourceProvider()- Specified by:
getPatientResourceProviderin classBaseRestServerHelper
-
getConceptMapResourceProvider
public ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.r4.model.ConceptMap> getConceptMapResourceProvider()- Specified by:
getConceptMapResourceProviderin classBaseRestServerHelper
-
setConceptMapResourceProvider
public void setConceptMapResourceProvider(ca.uhn.fhir.rest.server.provider.HashMapResourceProvider<org.hl7.fhir.r4.model.ConceptMap> theResourceProvider) -
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 thePatientId) - 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
-
getRequestUrls
-
getRequestVerbs
-
getRequestHeaders
-
getInterceptorService
-
setServerAddressStrategy
public void setServerAddressStrategy(ca.uhn.fhir.rest.server.IServerAddressStrategy theServerAddressStrategy) - Specified by:
setServerAddressStrategyin classBaseRestServerHelper
-