0

I'm using JwebUnit to test my JSP pages in a web application. Since JWebUnit requires a base urlto work. JwebUnit has setBaseUrl("http://localhost:8080/MyWebapp"); to set the base url which is used @Beforeof Junit Test. I need to start a server and deploy the webapp there before each test and stop the server after that. Can anyone please suggest me a simple way to do this with Jetty or other options...

Po DW
  • 103
  • 1
  • 9
  • Please post an example junit showing your initialization of jetty + jwebunit, then point out where you need this information. – Joakim Erdfelt Dec 23 '14 at 18:19

1 Answers1

0

You may have a look at Server Rule. It provides a JUnit rule that starts and stops a Jetty web server.

Stefan Birkner
  • 24,059
  • 12
  • 57
  • 72