]> source.dussan.org Git - poi.git/commitdiff
Bug 57612: Fix checking for proxy/accessible website in TestSignatureInfo
authorDominik Stadler <centic@apache.org>
Mon, 23 Feb 2015 20:45:21 +0000 (20:45 +0000)
committerDominik Stadler <centic@apache.org>
Mon, 23 Feb 2015 20:45:21 +0000 (20:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1661774 13f79535-47bb-0310-9956-ffa450edef68

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

index a0fe7c5ec877aa3657a045e6cb062de874a27188..f29aa8d3726ca9f4555f13e62df4f940cb76ebb9 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -82,7 +82,11 @@ under the License.
     <property name="POI.testdata.path" value="test-data"/>
     <property name="java.awt.headless" value="true"/>
     <property name="additionaljar" value=""/>
-    <property name="http_proxy" value="${env.http_proxy}"/>
+       <condition property="http_proxy" 
+          value="${env.http_proxy}"
+          else="">
+               <isset property="env.http_proxy"/>
+       </condition>
 
     <!-- Main: -->
     <property name="main.resource1.dir" value="src/resources/main"/>
index ded14dfba9662167c25768ae437146b15b1d0458..fe8ce801119f635128816a82b2f9cd64147b1ae2 100644 (file)
@@ -316,7 +316,7 @@ public class TestSignatureInfo {
         signatureConfig.addSignatureFacet(new XAdESXLSignatureFacet());\r
         \r
         // check for internet, no error means it works\r
-        boolean mockTsp = (getAccessError("http://timestamp.comodoca.com/rfc3161", true, 10000) == null);\r
+        boolean mockTsp = (getAccessError("http://timestamp.comodoca.com/rfc3161", true, 10000) != null);\r
         \r
         // http://timestamping.edelweb.fr/service/tsp\r
         // http://tsa.belgium.be/connect\r