aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web-client/src/test
diff options
context:
space:
mode:
authorAndreas Fitzek <afitzek@iaik.tugraz.at>2014-06-05 15:14:21 +0200
committerAndreas Fitzek <afitzek@iaik.tugraz.at>2014-06-05 15:14:21 +0200
commitda4c666bc905eb5e9378307c801da18795f233c9 (patch)
treedef29ada8abfa546dfd0eaf0aadf0c4359598727 /pdf-as-web-client/src/test
parent5e77141f169db3830d1b76139389d1fc210d1969 (diff)
parent370af0e71a27a9e0a3970d1eabe83dabc4d1a1a9 (diff)
downloadpdf-as-4-da4c666bc905eb5e9378307c801da18795f233c9.tar.gz
pdf-as-4-da4c666bc905eb5e9378307c801da18795f233c9.tar.bz2
pdf-as-4-da4c666bc905eb5e9378307c801da18795f233c9.zip
Merge branch 'afitzek.RC2' of gitlab.iaik.tugraz.at:afitzek/pdf-as-4 into afitzek.RC2
Diffstat (limited to 'pdf-as-web-client/src/test')
-rw-r--r--pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java15
1 files changed, 5 insertions, 10 deletions
diff --git a/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java b/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java
index 32c6dbad..e922c501 100644
--- a/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java
+++ b/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java
@@ -1,14 +1,9 @@
package at.gv.egiz.pdfas.web.client.test;
import java.io.FileInputStream;
-import java.io.FileOutputStream;
import java.net.URL;
-import java.util.ArrayList;
-import java.util.List;
import sun.misc.IOUtils;
-import at.gv.egiz.pdfas.api.ws.PDFASBulkSignRequest;
-import at.gv.egiz.pdfas.api.ws.PDFASBulkSignResponse;
import at.gv.egiz.pdfas.api.ws.PDFASSignParameters;
import at.gv.egiz.pdfas.api.ws.PDFASSignParameters.Connector;
import at.gv.egiz.pdfas.api.ws.PDFASSignRequest;
@@ -24,7 +19,7 @@ public class SimpleTest {
byte[] inputData = IOUtils.readFully(fis, -1, true);
PDFASSignParameters signParameters = new PDFASSignParameters();
- signParameters.setConnector(Connector.BKU);
+ signParameters.setConnector(Connector.ONLINEBKU);
signParameters.setPosition(null);
signParameters.setProfile("SIGNATURBLOCK_DE");
@@ -33,12 +28,12 @@ public class SimpleTest {
request.setParameters(signParameters);
request.setRequestID("SOME TEST ID");
- // URL endpoint = new
- // URL("http://demo.egiz.gv.at/demoportal-pdf_as/wssign?wsdl");
+ URL endpoint = new
+ URL("http://demo.egiz.gv.at/demoportal-pdf_as/wssign?wsdl");
//URL endpoint = new URL(
// "http://localhost:8080/pdf-as-web/wssign?wsdl");
- URL endpoint = new URL(
- "http://192.168.56.10/pdf-as-web/wssign?wsdl");
+ //URL endpoint = new URL(
+ // "http://192.168.56.10/pdf-as-web/wssign?wsdl");
RemotePDFSigner signer = new RemotePDFSigner(endpoint, false);