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
createUser
folder to hold request & response classes forcreateUser API
.getSingleUser
folder to hold request & response classes forgetSingleUser API
.
Client class to invoke resource API - In this case - UserClient.java
under the user
folder