Home > database >  Accidentally deleted my test folder in Spring boot application
Accidentally deleted my test folder in Spring boot application

Time:02-08

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?

CodePudding user response:

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.

  •  Tags:  
  • Related