In eclipse preferences
Windows > Preferences > Java > Junit
What effect does the "Add '-ea' to VM args ...." checkbox option actually have on the new junit launch config?
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.
It enables the JVM to honour assertions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With