You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-dev@ws.apache.org by sc...@apache.org on 2005/03/01 19:21:52 UTC
svn commit: r155809 -
incubator/apollo/trunk/src/site/content/example/src/test/org/oasisOpen/docs/wsrf/InteropTestCase.java
Author: scamp
Date: Tue Mar 1 10:21:51 2005
New Revision: 155809
URL: http://svn.apache.org/viewcvs?view=rev&rev=155809
Log: (empty)
Modified:
incubator/apollo/trunk/src/site/content/example/src/test/org/oasisOpen/docs/wsrf/InteropTestCase.java
Modified: incubator/apollo/trunk/src/site/content/example/src/test/org/oasisOpen/docs/wsrf/InteropTestCase.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/test/org/oasisOpen/docs/wsrf/InteropTestCase.java?view=diff&r1=155808&r2=155809
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/test/org/oasisOpen/docs/wsrf/InteropTestCase.java (original)
+++ incubator/apollo/trunk/src/site/content/example/src/test/org/oasisOpen/docs/wsrf/InteropTestCase.java Tue Mar 1 10:21:51 2005
@@ -9,6 +9,7 @@
import java.io.File;
import java.io.IOException;
import java.net.URL;
+import java.net.MalformedURLException;
/**
* Created by IntelliJ IDEA.
@@ -34,6 +35,7 @@
private File m_basePath = new File(".");
//setup requests path
private File m_requestsDir = new File(m_basePath,"requests");
+ private static final String SOAP_REQ_CREATE_PRINTER = "CreatePrinter.soap";
public InteropTestCase() {
@@ -63,8 +65,9 @@
}
//***** tests ********
- public void createPrinter() throws IOException {
- String response = SoapClient.sendRequest(new URL(m_printerFactoryURL), new File(m_requestsDir,"CreatePrinter.soap"),null);
+ public void createPrinter() throws IOException
+ {
+ String response = sendRequest(m_printerFactoryURL, SOAP_REQ_CREATE_PRINTER);
assertTrue(response.indexOf("CreatePrinterResponse") > -1);
}
@@ -192,5 +195,9 @@
public void setRequestsDir(String requestsDir) {
m_requestsDir = new File(requestsDir);
+ }
+
+ public String sendRequest(String requestURL, String requestFileName) throws IOException {
+ return SoapClient.sendRequest(new URL(requestURL), new File(m_requestsDir,requestFileName),null);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: apollo-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: apollo-dev-help@ws.apache.org