Code example for ExemptionMechanismException

0
 
    public static String[] msgs = { 
            "New message", 
            "Long message for Exception. Long message for Exception. Long message for Exception." }; 
 
    protected Object[] getData() { 
        return new Object[] { new ExemptionMechanismException(), 
                new ExemptionMechanismException(null), new ExemptionMechanismException(msgs[1]) }; 
    } 
 
    public static void main(String[] args) { 
        junit.textui.TestRunner.run(ExemptionMechanismExceptionTest.class); 
    } 
}