Source code installation - PascalBod/municserver GitHub Wiki
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 clonedmunicserver
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. Removemunicserver.jar
. Using Library... button, addJUnit
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.