How to programmatically enable assert?
<p>How can I programmatically enable assert for particular classes, instead of specifying command line param "-ea"?</p>

<pre><code>public class TestAssert {

    private static final int foo[] = new int[]{4,5,67};


    public static void main(String []args) {
        assert foo.length == 10;
    }
}
</code></pre>
