An open API service indexing awesome lists of open source software.

https://github.com/mageddo/maven-jetty-integration-tests

Example of how to use jetty on maven to do integration tests
https://github.com/mageddo/maven-jetty-integration-tests

Last synced: about 1 year ago
JSON representation

Example of how to use jetty on maven to do integration tests

Awesome Lists containing this project

README

          

## introduction
This example is a example of integration test using `jetty` as servlet container to run with the integration test, jetty runs on `8181` port but it is configurable, the example cover:

1. A simple WEB project with a HelloWorldServlet that hava a `GET` and a `POST` method.
2. A integration test that run the project in jetty and test yours URLs responses

## to test
```
mvn clean install
```

## important!!
Make sure that you have not a `jetty-web.xml` in your `WEB-INF` folder or change the path in `com.mageddo.tests.core.Properties.java` to the `jetty.web.xml` path