Hapi FHIR Testing Provider

39 views
Skip to first unread message

Jordi Gravi

unread,
Dec 13, 2022, 12:05:48 PM12/13/22
to HAPI FHIR
Hello, 
I have a class CommunicationProvider with a create method annotated with Create annotation.

@Create
public MethodOutcome create(@ResourceParam Communication communication){

}

I'm not able to test the provider using Rest Assured because it throws an exception due to Jackson serialization/deserialization (FHIR uses its owns parsers).

Is there a way to change the create method signature to something like
@Create
public MethodOutcome create(String jsonCommunication){

}
Thanks.

Pablo

unread,
Dec 13, 2022, 5:40:30 PM12/13/22
to HAPI FHIR
Hi All, I have the same issue to test a CommunicationProvider with a create Method. we have a spring boot project with hapi fhir server.

do anyone know how can be tested a provider with rest assured?

Thanks

Reply all
Reply to author
Forward
0 new messages