Skip to content

Tests

At this point you should have two RESTful services, Tic Tac Toe and the Book Store.

Now let's check if your RESTful API is compliant to the description. This is easy to motivate - let's just assume you were responsible for the server part, while some other team pf developers coded a mobile app in the meantime, that will communicate with your REST API.

There are tow test repositories that send a probe request to each of your endpoint and validate if your server behaves the way it should. To run them,

  • First start up your service.
  • Then with your service still running, start the test program.

Test Sources

Test Run

  • Clone the repo: git clone ...
  • Go into the cloned directory: cd ...
  • Run the Tests: mvn clean test
  • Go to the end of the printed output, verify all tests have passes / fix the one that did not pass.:w