Where should I put test classes if they ARE the project?

725 views Asked by At

Using maven there is the standard folder structure:

Project/src/main/java/com/application/Class.java
Project src/test/java/com/application/ClassTest.java

In this case both the original class and its test have the same package

package com.application;

But where should I put test classes if the whole purpose of the project is to do acceptance test of another project, e.g. a REST api?

So far I have used the above structure and had utility classes in ...src/main...and the tests in ...src/test...but this does not make sense since the test classes are not testing the utility classes.

Is there a best practice for this?

0

There are 0 answers