@AndroidOnly("Test filed on RI: getRevokedCertificate throws " + "RuntimeException.") public void testGetRevokedCertificate(){
  try {
    tbt_crl.getRevokedCertificate((X509Certificate)null);
    fail("NullPointerException should be thrown " + "in the case of null input data.");
  }
 catch (  NullPointerException e) {
  }
  try {
    CertificateFactory cf=CertificateFactory.getInstance("X.509");
    X509Certificate cert=(X509Certificate)cf.generateCertificate(certArray);
    tbt_crl.getRevokedCertificate(cert);
  }
 catch (  Exception e) {
    fail("Unexpected exception: " + e);
  }
}

@ AndroidOnly ( "Test filed on RI: getRevokedCertificate throws " + "RuntimeException." ) public void testGetRevokedCertificate ( ) { try { tbt_crl . getRevokedCertificate ( ( X509Certificate ) null ) ; fail ( "NullPointerException should be thrown " + "in the case of null input data." ) ; } catch ( NullPointerException e ) { } try { CertificateFactory cf = CertificateFactory . getInstance ( "X.509" ) ; X509Certificate cert = ( X509Certificate ) cf . generateCertificate ( certArray ) ; tbt_crl . getRevokedCertificate ( cert ) ; } catch ( Exception e ) { fail ( "Unexpected exception: " + e ) ; } }
getrevokedcertificate ( x509certificate certificate ) method testing . check if the default implementation throws nullpointerexception on null input data .
