• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error launching JUnit

 
camelia codarcea
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everybody,

I am currently working on a project with Hibernate and Spring, and I have made some JUnit classes to test the interaction with database.
When I try yo run the test: right click-> run as-> JUnit test, I get the following error:

"The input type of the launch configuration does not exist".

Does anybody know what are the configurations? I haven't done any configurations, I just created a new JUnit class that derives from TestCase

thank you
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So this is in an IDE? Eclipse, maybe? It sounds like an IDE configuration issue, nothing to do with JUnit, really. I'm going to move this to our "Version Control, IDEs, and other Tools" forum.
 
camelia codarcea
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, I get th error enside Eclipse IDE.

I face searched the net, but I couldnt find any usefull information.
I have the junit-3.8.1.jar, I have put it in the Java Build Path... do I have to make other configurations ?

thank you
 
greg buela
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has happened to me today, and I've found what was wrong.
I had created a folder where I put my test classes (which were developed in another IDE). The problem is that this folder wasn't created as a "source folder".
You can easily tell whether your test folder is a source folder: in the package explorer, check out the icon for that folder. It should be the same as for the src folder.
So if that was your problem too, right click on the project node, select New... and then Source folder. Then just put your tests in that folder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic