0

I am trying to complete a test case that deploys a war and makes some REST requests.

I want to use Payara Micro JAVA API and I've had a good start with setting up a boostrap

bootStrap = PayaraMicro.getInstance().setHttpPort(6060).bootStrap();

... and deploying my war

bootStrap.deploy(new File("{path}"));

My war deploys correctly.

Where do I go from here? Where do I point my requests to?

Greg
  • 43
  • 7

2 Answers2

0

The context path is the same as the name of the WAR you've deployed. (See example cURL in this README)

So if you are deploying my-war.war with your settings above, then you would go to:

http://127.0.0.1:6060/my-war
Mike
  • 4,852
  • 1
  • 29
  • 48
0

OK so I was able to setup up a standard javax.ws.rs.client.WebTarget and Client and make regular requests after all.

It's nice to be able to design system test in JUnit. Payara rocks ;)

Greg
  • 43
  • 7