harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-2786) [classlib][security]PKIXCertPathValidatorResult fails to implement clone.
Date Tue, 19 Dec 2006 08:37:23 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2786?page=all ]

Stepan Mishura reassigned HARMONY-2786:
---------------------------------------

    Assignee: Stepan Mishura

> [classlib][security]PKIXCertPathValidatorResult fails to implement clone.
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2786
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2786
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Stepan Mishura
>         Attachments: patch-2786.diff
>
>
> Here is  a testcase:
> ublic final void testPKIXCertPathBuilderResult_clone()
>         throws InvalidKeySpecException,
>                NoSuchAlgorithmException {
>         TrustAnchor ta = TestUtils.getTrustAnchor();
>         if (ta == null) {
>             fail(getName() + ": not performed (could not create test TrustAnchor)");
>         }
>         CertPathBuilderResult r =
>             new PKIXCertPathBuilderResult(
>                     new MyCertPath(testEncoding),
>                     ta,
>                     TestUtils.getPolicyTree(),
>                     testPublicKey);
>              
>         PKIXCertPathBuilderResult r1 = (PKIXCertPathBuilderResult) r;
> 		PKIXCertPathBuilderResult r2 = (PKIXCertPathBuilderResult) r1.clone();
> 		assertSame(r1.getCertPath(), r2.getCertPath());
> 		assertSame(r1.getPolicyTree(), r2.getPolicyTree());
> 		assertSame(r1.getPublicKey(), r2.getPublicKey());
> 		assertSame(r1.getTrustAnchor(), r2.getTrustAnchor());    
>     }
> RI passes.
> Harmony fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message