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
This commit is contained in:
parent
327df5cf76
commit
1bbbd985d4
@ -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"/>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user