Code example for ExemptionMechanism

Methods: getName

0
        } catch (ShortBufferException e) {
            //failed 
        } 
        byte[] b = new byte[] {0, 0, 0, 1, 2, 3, 33, 0};
         
        try { 
            em.genExemptionBlob(b, 3);
            fail("ExemptionMechanismException expected");
        } catch (ExemptionMechanismException e) {
            //failed 
        } 
    } 
 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "Tests Exceptions", 
        method = "getInstance", 
        args = {java.lang.String.class}
    ) 
    public void test_getInstanceLjava_lang_String() throws Exception { 
        try {