Skip to content

Conversation

adamzkover
Copy link

Autoconfiguration with Spring Boot depends on AbstractJaxRsProvider, which is in dependency hapi-fhir-jaxrsserver-base.

For simpler server implementations it should be enough to have hapi-fhir-server as dependency.

@Override
public void run(String... args) throws Exception {
fhirClient.capabilities().ofType(CapabilityStatement.class).execute();
fhirClient.capabilities().ofType(CapabilityStatement.class) /* .execute() */;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why wouldn't you do the execute invocation here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling execute would actually execute the request, and fail if there isn't a FHIR server running on localhost:8080.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enabled execute again, and added a mock CommandLineRunner in the test class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants