wood burning stoves 2.0*
The moose likes Testing and the fly likes Junit inn Action: JUnit clash in Eclipse? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Junit inn Action: JUnit clash in Eclipse?" Watch "Junit inn Action: JUnit clash in Eclipse?" New topic
Author

Junit inn Action: JUnit clash in Eclipse?

Wirianto Djunaidi
Ranch Hand

Joined: Mar 20, 2001
Posts: 210

When using JUnit inside Eclipse, often times I got unresolved method
for assertFalse(). Do you have any idea why? In the beginning I thought there was a clash in JUnit.jar version that shipped with Eclipse. Especially now that JUnit use assertTrue and assertFalse to circumvent 1.4's assert.
But funny thing is assertTrue has no problem, I would have thought JUnit will have
both assertTrue and assertFalse in the same version.
FYI, I was using Eclipse 2.1 for my project.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Assert#assertFalse(...) was added in JUnit version 3.8. Assert#assertTrue(...) was already there before 3.8.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Junit inn Action: JUnit clash in Eclipse?
 
Similar Threads
Session clash
Culture Clash
Test for equality of two objects
Clash of Civilizations!!
What unit test would it be?