You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2020/04/26 20:14:05 UTC

svn commit: r1877039 - /pdfbox/branches/issue45/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java

Author: tilman
Date: Sun Apr 26 20:14:05 2020
New Revision: 1877039

URL: http://svn.apache.org/viewvc?rev=1877039&view=rev
Log:
PDFBOX-3017: rename variable to avoid confusion

Modified:
    pdfbox/branches/issue45/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java

Modified: pdfbox/branches/issue45/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java?rev=1877039&r1=1877038&r2=1877039&view=diff
==============================================================================
--- pdfbox/branches/issue45/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java (original)
+++ pdfbox/branches/issue45/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java Sun Apr 26 20:14:05 2020
@@ -174,7 +174,7 @@ public class TestCreateSignature
         // mock TSA server (RFC 3161)
         MockHttpServer mockServer = new MockHttpServer(15371);
         mockServer.startServer();
-        String tsaUrl = "http://localhost:" + mockServer.getServerPort() + "/";
+        String brokenMockTSA = "http://localhost:" + mockServer.getServerPort() + "/";
         MockHttpServer.MockHttpServerResponse response = new MockHttpServer.MockHttpServerResponse();
         response.setMockResponseContent(content);
         response.setMockResponseContentType("application/timestamp-reply");
@@ -193,7 +193,7 @@ public class TestCreateSignature
         {
             CreateSignature signing = new CreateSignature(keystore, password.toCharArray());
             signing.setExternalSigning(externallySign);
-            signing.signDetached(new File(inPath), new File(outPath), tsaUrl);
+            signing.signDetached(new File(inPath), new File(outPath), brokenMockTSA);
             Assert.fail("This should have failed");
         }
         catch (IOException e)