Code example for X509CRLSelector

Methods: setIssuerNames

0
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies IOException.", 
        method = "addIssuerName", 
        args = {byte[].class} 
    ) 
    public void test_addIssuerName$B_3() throws Exception { 
        //Regression for HARMONY-465 
        X509CRLSelector obj = new X509CRLSelector();
        try { 
            obj.addIssuerName(new byte[] { (byte) 2, (byte) 3, (byte) 4 });
            fail("IOException expected");
        } catch (IOException e) {
            // expected 
        } 
    } 
 
    /** 
     * @tests java.security.cert.X509CRLSelector#addIssuerName(byte[]) 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE,