maven - Can't create unittests IntelliJ -


i not able select testfolder in intellij. reason wasn't there when created project, added manually. after did that, went project structure --> modules, marked test.

i not allowed leave source directory, when creating testcase.

see image:

image showing error

the problem doesn't occure when create new project, testfolder set automaticly.

it seems have wrong project structure.

it should follows:

project-name     |-- pom.xml     |-- src         |-- main         |    |-- java         |    |-- resources         |-- test              |-- java              |-- resources 

and don't mark test directory test source root. should mark test/java (subdirectory under test folder) instead:

enter image description here


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -