Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Junit inn Action: JUnit clash in Eclipse?

 
Wirianto Djunaidi
Ranch Hand
Posts: 210
Ruby Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assert#assertFalse(...) was added in JUnit version 3.8. Assert#assertTrue(...) was already there before 3.8.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic