You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by sm...@apache.org on 2008/01/30 18:01:13 UTC

svn commit: r616815 - in /harmony/enhanced/buildtest/branches/2.0/tests/functional: config/func_exclude.file src/test/functional/org/apache/harmony/test/func/api/java/security/cert/F_CertStoreTest_02/F_CertStoreTest_02.java

Author: smishura
Date: Wed Jan 30 09:01:12 2008
New Revision: 616815

URL: http://svn.apache.org/viewvc?rev=616815&view=rev
Log:
Apply patch from HARMONY-4464:
[buildtest][func] test F_CertStoreTest_02 uses obsolete testing data

Modified:
    harmony/enhanced/buildtest/branches/2.0/tests/functional/config/func_exclude.file
    harmony/enhanced/buildtest/branches/2.0/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/security/cert/F_CertStoreTest_02/F_CertStoreTest_02.java

Modified: harmony/enhanced/buildtest/branches/2.0/tests/functional/config/func_exclude.file
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/functional/config/func_exclude.file?rev=616815&r1=616814&r2=616815&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/functional/config/func_exclude.file (original)
+++ harmony/enhanced/buildtest/branches/2.0/tests/functional/config/func_exclude.file Wed Jan 30 09:01:12 2008
@@ -197,7 +197,7 @@
 functional/org/apache/harmony/test/func/api/javax/management/loading/LoadingMBeanTest.xml
 functional/org/apache/harmony/test/func/api/javax/management/loading/MLetClassLoaderTest.xml
 functional/org/apache/harmony/test/func/api/javax/management/loading/TheMLetTagTest.xml
-# H-4463, H-4464 - test issue
+# H-4463
 functional/org/apache/harmony/test/func/api/java/security/cert/F_CertStoreTest_02/F_CertStoreTest_02.xml
 # H-4457 
 functional/org/apache/harmony/test/func/api/javax/management/QueryTest.xml

Modified: harmony/enhanced/buildtest/branches/2.0/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/security/cert/F_CertStoreTest_02/F_CertStoreTest_02.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/security/cert/F_CertStoreTest_02/F_CertStoreTest_02.java?rev=616815&r1=616814&r2=616815&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/security/cert/F_CertStoreTest_02/F_CertStoreTest_02.java (original)
+++ harmony/enhanced/buildtest/branches/2.0/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/security/cert/F_CertStoreTest_02/F_CertStoreTest_02.java Wed Jan 30 09:01:12 2008
@@ -152,7 +152,7 @@
                 return fail("FAILED: couln't find any valid CRL");
             }
             
-            crlSelector.setDateAndTime(new Date());
+            crlSelector.setDateAndTime(crl.getThisUpdate());
             if (!crlSelector.match(crl)) {
                 return fail("FAILED: the CRL doesn't match in spite of the fact that current date falls within the CRL validity period");
             }
@@ -176,7 +176,7 @@
                 return fail("FAILED: two same certificates aren't equal");
             }
             
-            log.info(retrievedTestCert.toString());
+            //log.info(retrievedTestCert.toString());
             X500Principal testCertIssuer = retrievedTestCert.getIssuerX500Principal();
             log.info("Certificate's issuer: " + testCertIssuer.getName());
             if (!testCertIssuer.equals(crlIssuerPrincipal)) {