Code example for PKIXCertPathValidatorResult

Methods: toString

0
        if (ta == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor)");
        } 
 
        PKIXCertPathValidatorResult vr =
            new PKIXCertPathValidatorResult(
                    ta,
                    TestUtils.getPolicyTree(), 
                    testPublicKey);
 
        assertNotNull(vr.toString());
    } 
 
    /** 
     * Test #2 for <code>toString()</code> method<br> 
     * Assertion: Returns a formatted string describing this object 
     * @throws NoSuchAlgorithmException 
     * @throws InvalidKeySpecException 
     */ 
    public final void testToString02() throws Exception { 
        TrustAnchor ta = TestUtils.getTrustAnchor();