Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Junit '-ea' VM Option

Tags:

junit

eclipse

ide

In eclipse preferences

Windows > Preferences > Java > Junit 

alt text

What effect does the "Add '-ea' to VM args ...." checkbox option actually have on the new junit launch config?

like image 342
emeraldjava Avatar asked Mar 26 '10 11:03

emeraldjava


People also ask

What is EA in VM options?

With this option, assertions can be enabled (by default, they are turned off). In a language that supports assertions, the programmer can add runtime conditional checks.


1 Answers

It enables the JVM to honour assertions

like image 51
Matt McHenry Avatar answered Sep 20 '22 11:09

Matt McHenry