A HTTP server compliant with the subset of the HTTP specification covered by the Cob Spec test suite.
- Maven 3.3
- Cob Spec
- Java 1.8
- jUnit 4.12
- hamcrest 1.3
- Enter
git clone --recursive https://github.com/scarvill91/java-httpserver.gitin the command line. - Navigate to the project root directory.
- Enter
mvn packagein the command line.
- From the project root directory, enter
java -jar target/httpserver-1.0-SNAPSHOT.jarin the command line.
You can optionally specify the server's port with the flag '-p' and a directory from which to serve files with the flag '-d'. e.g. java -jar target/httpserver-1.0-SNAPSHOT.jar -p 5000 -d cob_spec/public. The default port is 5000, and the default directory is 'cob_spec/public'.
- From the project root directory, enter
mvn testin the command line.
- Navigate to the project cob_spec directory.
- Enter
mvn packagein the command line. - Enter
java -jar fitnesse.jar -p 9090in the command line. - Navigate to http://localhost:9090/HttpTestSuite in your browser.
- Click the 'Suite' button.