Recommended package structure

As we author more tests covering many APIs - it is important to organize the files in proper packages.

Package Structure

A package specific for a resource under test - in this case, it is User resource

Now under user, a folder for each API that the resource is offering - in this case, createUser & getSingleUser APIs

  1. createUser folder to hold request & response classes for createUser API.
  2. getSingleUser folder to hold request & response classes for getSingleUser API.


Client class to invoke resource API - In this case - UserClient.java under the user folder