Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Can't get junit to work in Eclipse
Can't get junit to work in Eclipse [message #728989] Sat, 24 September 2011 16:55 Go to next message
AMD_RULES  is currently offline AMD_RULES Friend
Messages: 1
Registered: September 2011
Junior Member
I'm trying to run a junit java file that was created by a different user in Eclipse Helios. Once I import the .jar file into eclipse, I right click on the java file and click Run-As... then select junit test. It always says, 'no junit tests found.'

It's in the same folder as the java program that I am trying to test.

Am I doing something wrong? I looked at a few tutorials on junit testing, but they all deal with creating new junit test cases, but I am trying to use a junit test case that was created on another machine.

Thanks!
Re: Can't get junit to work in Eclipse [message #729098 is a reply to message #728989] Sun, 25 September 2011 03:35 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 09/24/2011 11:55 AM, AMD_RULES wrote:
> I'm trying to run a junit java file that was created by a different user
> in Eclipse Helios. Once I import the .jar file into eclipse, I right
> click on the java file and click Run-As... then select junit test. It
> always says, 'no junit tests found.'
>
> It's in the same folder as the java program that I am trying to test.
>
> Am I doing something wrong? I looked at a few tutorials on junit
> testing, but they all deal with creating new junit test cases, but I am
> trying to use a junit test case that was created on another machine.
>
> Thanks!
Have you added the correct JUnit jar files to the classpath?
Previous Topic:Unable to start Eclipse due to NullPointerException
Next Topic:The -vm parameter not working
Goto Forum:
  


Current Time: Fri Apr 26 15:10:29 GMT 2024

Powered by FUDForum. Page generated in 0.07694 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top