junithelper
junithelper copied to clipboard
New test class does not get created
I find a class without tests and click alt+9. My test class does not get created.
I get the following message:
Resource ClassTest does not exist.
Would you tell me how to reproduce it in more detail?
- OS and version (e.g. Windows 8, Mac OS X 10.7.5)
- Eclipse version (e.g. 4.2 Juno)
- file structure, test target file and so on
Windows 7 Juno Service Release 1 File structure is the regular maven structure where source is in src/main/java and test is in src/test/java
I've never seen such a trouble. Does it certainly happen? If so, please tell me the procedure to get the error. Maybe I can find out about it.
The scenario is very simple. I find a class that does not have a test class. I click alt+9 and get the message that the test class does not exist and it asks me if I want to create one. I say yes, and it looks like I a new class is created but all it says is Resource 'package.classTest' does not exist.
A few questions.
it looks like I a new class is created
Is a class generated though the title of this issue is "New test class does not get created"?
it says is Resource 'package.classTest' does not exist.
I'm afraid that the message isn't given by JUnit Helper. Could you show me the screen shot of that?
Are you using git? I have a new project which uses git and I am getting the exact same problem with JUnitHelper. I'm using Kepler but I've tried using Juno, Indigo and Helios (in succession). I was thinking that perhaps it was because JUnitHelper was not compatible with the latest version(s) of Eclipse. But that appears not to be the case. It may have nothing to do with git but I have found the following strange thing: the test classes are in fact being created - but not in the src directory of the project. Instead they were placed in a directory at a level above my project. Once I discovered that, I was able to move them into the correct place and all was well.
I am having this problem. Anyone found a solution ? OS: Ubuntu, Eclipse Neon.