I've spent some time trying to set up my project to use assertions. The assert keywords are correctly highlighted in the editor, the code compiles nicely, but no AssertionError is ever thrown.
I have checked the "Enable "assert" keyword" box in the paths tab.
I have programmatically set the defaultAssertionStatus to true in my class.
When I compile and run the class inside idea, the assertion is ignored.
I have also tried to enable assertions when building with Ant by adding the source="1.4" attribute to the javac target in my build.xml. Again no AssertionError is thrown.
I noted that idea 4 does not yet support Ant 1.6.* and the <assertions/> property. How would on accomplish the same thing in the ant version supported by idea4?.
I'm probably missing something obvious. Any help would be appreciated.