public void test_ConstructorLjava_security_cert_CertPathParameters(){
  try {
    CertPathParameters parameters=new MyCertPathParameters();
    CertPathTrustManagerParameters p=new CertPathTrustManagerParameters(parameters);
    assertNotSame("Parameters were cloned incorrectly",parameters,p.getParameters());
  }
 catch (  Exception e) {
    fail("Unexpected exception " + e.toString());
  }
  try {
    new CertPathTrustManagerParameters(null);
    fail("Expected CertPathTrustManagerParameters was not thrown");
  }
 catch (  NullPointerException npe) {
  }
}

public void test_ConstructorLjava_security_cert_CertPathParameters ( ) { try { CertPathParameters parameters = new MyCertPathParameters ( ) ; CertPathTrustManagerParameters p = new CertPathTrustManagerParameters ( parameters ) ; assertNotSame ( "Parameters were cloned incorrectly" , parameters , p . getParameters ( ) ) ; } catch ( Exception e ) { fail ( "Unexpected exception " + e . toString ( ) ) ; } try { new CertPathTrustManagerParameters ( null ) ; fail ( "Expected CertPathTrustManagerParameters was not thrown" ) ; } catch ( NullPointerException npe ) { } }
javax . net . ssl . certpathtrustmanagerparameters # certpathtrustmanagerparameters ( java . security . cert . certpathparameters ) case 1 : try to construct object . case 2 : check nullpointerexception .
