From 2cdeca15e0aef38e6ab356f3593354569d7aca8c Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Mon, 23 Feb 2015 20:45:21 +0000 Subject: [PATCH] Bug 57612: Fix checking for proxy/accessible website in TestSignatureInfo git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1661774 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 6 +++++- .../org/apache/poi/poifs/crypt/TestSignatureInfo.java | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.xml b/build.xml index a0fe7c5ec8..f29aa8d372 100644 --- a/build.xml +++ b/build.xml @@ -82,7 +82,11 @@ under the License. - + + + diff --git a/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java b/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java index ded14dfba9..fe8ce80111 100644 --- a/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java +++ b/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java @@ -316,7 +316,7 @@ public class TestSignatureInfo { signatureConfig.addSignatureFacet(new XAdESXLSignatureFacet()); // check for internet, no error means it works - boolean mockTsp = (getAccessError("http://timestamp.comodoca.com/rfc3161", true, 10000) == null); + boolean mockTsp = (getAccessError("http://timestamp.comodoca.com/rfc3161", true, 10000) != null); // http://timestamping.edelweb.fr/service/tsp // http://tsa.belgium.be/connect -- 2.39.5