• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error launching JUnit

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic