]> source.dussan.org Git - poi.git/commitdiff
Add xmlsec-jar in test-ooxml-lite which is missing after removing ooxml.classpath
authorDominik Stadler <centic@apache.org>
Sun, 9 Nov 2014 19:19:02 +0000 (19:19 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 9 Nov 2014 19:19:02 +0000 (19:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1637718 13f79535-47bb-0310-9956-ffa450edef68

build.xml
src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java

index 0443883d28bd29219c196b607fbf70af6f0c093e..40ecb104a08c2be1d9a5fb8c64528f79921c0ba9 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -293,6 +293,7 @@ under the License.
         <pathelement location="${ooxml.output.dir}"/>
         <pathelement location="${ooxml.output.test.dir}"/>
         <pathelement location="${main.output.test.dir}"/>
+        <pathelement location="${ooxml.security.jar}"/>
     </path>
 
 
index 34c8d59ef1c39ed9cbf498cad374b16105774a1a..d99aadd9ca265177b13ad20c1ccf10625368f403 100644 (file)
@@ -482,8 +482,7 @@ public class TestSignatureInfo {
         si.confirmSignature();\r
         \r
         for (SignaturePart sp : si.getSignatureParts()){\r
-            boolean b = sp.validate();\r
-            assertTrue(b);\r
+            assertTrue("Could not validate", sp.validate());\r
             X509Certificate signer = sp.getSigner();\r
             assertNotNull("signer undefined?!", signer);\r
             List<X509Certificate> certChainRes = sp.getCertChain();\r