Code example for X509CRLSelector

Methods: addIssuer

0
import javax.security.auth.x500.X500Principal; 
 
@TestTargetClass(X509CRLSelector.class)
public class X509CRLSelectorTest extends TestCase {
 
    /** 
     * @tests java.security.cert.X509CRLSelector#addIssuer(javax.security.auth.x500.X500Principal) 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "addIssuer", 
        args = {javax.security.auth.x500.X500Principal.class}
    ) 
    public void test_addIssuerLjavax_security_auth_x500_X500Principal01() 
            throws Exception { 
        //Regression for HARMONY-465 
        X509CRLSelector obj = new X509CRLSelector();
        try { 
            obj.addIssuer((X500Principal) null);
            fail("NullPointerException expected");