You are wondering why your JUnit tests run very fine when you launch them using Eclipse, whereas they all break down when building your project with a build system like Ant or Maven?

Well, thats probably because you are using assert statements and Eclipse per default is not configured to evaluate them.

To solve this problem, simpy go to Run -> Run… -> Arguments, and in the box labeled VM arguments:, enter either -enableassertions or just -ea.

That’s it!

Improve Eclipse for JSF and Facelets development
Eclipse: IWAE0010E An internal error occurred
Eclipse: Timeout waiting for JBOSS 5.0 to start.

Are you interested in reading more from CodingClues?
Then subscribe to new postings via RSS or via E-Mail.

Viewing 2 Comments

close Reblog this comment
blog comments powered by Disqus