It is possible to enable assertions with JRE command line switch or by system call. It is relatively easy, but until you run multiple test classes by right click. This case Eclipse creates new runtime configuration for running class and it is not containing -ea
.
Is it possible to enable assertion automaticly in debug runs and disable in normal runs?
UPDATE
I want to emphasize, that I probably know, how to enable assertions in single run configuration. Also I know, how to enable them globally.
But I need different: I need to do it HALF globally. I.e. enable assertions in ALL future debug configurations, and disable assertions in ALL future run configurations.
Is it possible?