public void testAddIssuerLjavax_security_auth_x500_X500Principal02(){
  X509CRLSelector selector=new X509CRLSelector();
  X500Principal iss1=new X500Principal("O=First Org.");
  X500Principal iss2=new X500Principal("O=Second Org.");
  CRL crl1=new TestCRL(iss1);
  CRL crl2=new TestCRL(iss2);
  selector.addIssuer(iss1);
  assertTrue("The CRL should match the selection criteria.",selector.match(crl1));
  assertFalse("The CRL should not match the selection criteria.",selector.match(crl2));
  selector.addIssuer(iss2);
  assertTrue("The CRL should match the selection criteria.",selector.match(crl2));
}

public void testAddIssuerLjavax_security_auth_x500_X500Principal02 ( ) { X509CRLSelector selector = new X509CRLSelector ( ) ; X500Principal iss1 = new X500Principal ( "O=First Org." ) ; X500Principal iss2 = new X500Principal ( "O=Second Org." ) ; CRL crl1 = new TestCRL ( iss1 ) ; CRL crl2 = new TestCRL ( iss2 ) ; selector . addIssuer ( iss1 ) ; assertTrue ( "The CRL should match the selection criteria." , selector . match ( crl1 ) ) ; assertFalse ( "The CRL should not match the selection criteria." , selector . match ( crl2 ) ) ; selector . addIssuer ( iss2 ) ; assertTrue ( "The CRL should match the selection criteria." , selector . match ( crl2 ) ) ; }
addissuer ( x500principal issuer ) method testing . tests if crls with specified issuers match the selector , and if not specified issuer does not match the selector .
