As the title says I accidentally deleted my test folder in Spring boot application and created a folder named test under src folder. But now I can’t create java class in test folder.IDE does not recognize it as a java class. What can I do to fix this?
Advertisement
Answer
Create the java
in the test directory. If you use IDEA, right-click the java
and choose Mark Directory as->Test Resources Root
from the shortcut menu. Put your test classes in the java
.