Jun
30
30
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!
Related:
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.
Add New Comment
Viewing 2 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks
(Trackback URL)