Skip to content

Source code installation

Pascal Bodin edited this page Dec 10, 2016 · 1 revision

Prerequisites

Source code requires Java 1.8.

Eclipse

Import

To install source code in Eclipse:

  • clone the git repository. This create a new folder in your local folder, named municserver
  • in Eclipse, create a new Java project. For Project name, use municserver. Uncheck Use default location and set Location to the above cloned municserver folder. Beware: the cloned project folder must not be inside the Eclipse workspace.
  • select municserver project in the Package Explorer window, and go to menu File / Properties / Java Build Path / Libraries. Remove municserver.jar. Using Library... button, add JUnit library (JUnit 4).

Tests

Two JUnit classes are provided. DecodeJsonTest allows to check how the JSON parsing library works. ServerTest performs functional tests, activating a test server and sending it a few JSON test documents.

Clone this wiki locally