Code example for PKIXCertPathValidatorResult

Methods: getTrustAnchor

0
     * Test #4 for <code>PKIXCertPathValidatorResult(TrustAnchor, 
     * PolicyNode, PublicKey)</code> constructor<br> 
     * Assertion: <code>PolicyNode</code>can be <code>null</code> 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies null as a parameter.", 
        method = "PKIXCertPathValidatorResult", 
        args = {java.security.cert.TrustAnchor.class, java.security.cert.PolicyNode.class, java.security.PublicKey.class}
    ) 
    public final void testPKIXCertPathValidatorResult04() throws Exception { 
        TrustAnchor ta = TestUtils.getTrustAnchor();
        if (ta == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor)");
        } 
 
        new PKIXCertPathValidatorResult(
                ta,
                null, 
                testPublicKey);
    }