| Author |
Junit inn Action: JUnit clash in Eclipse?
|
Wirianto Djunaidi
Ranch Hand
Joined: Mar 20, 2001
Posts: 195
|
|
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
|
|
|
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]
|
 |
 |
|
|
subject: Junit inn Action: JUnit clash in Eclipse?
|
|
|