FHIR Chat · How can I test/know when JPA server is up and running? · hapi

Stream: hapi

Topic: How can I test/know when JPA server is up and running?


view this post on Zulip Michael Christensen (Nov 06 2017 at 14:50):

I am writing some integration tests involving a JPA server. If I have a script that starts the JPA server is there anyway I can know when it is up and running? Meaning that it's ready to serve and receive resources?

view this post on Zulip Jens Villadsen (Nov 06 2017 at 15:07):

(deleted)

view this post on Zulip Jens Villadsen (Nov 06 2017 at 15:13):

curl'ing until you get a 200 is one approach

view this post on Zulip Patrick Werner (Nov 07 2017 at 13:57):

i would use maven to startup tomcat during the integration test phase, here is an example using the cargo plugin:
http://www.baeldung.com/integration-testing-with-the-maven-cargo-plugin


Last updated: Apr 12 2022 at 19:14 UTC