summaryrefslogtreecommitdiffstats
path: root/src/wcps/server/test/XmlTest.java
diff options
context:
space:
mode:
authorAndrei Aiordachioaie <a.aiordachioaie@jacobs-university.de>2009-05-29 12:38:32 +0200
committerAndrei <a.aiordachioaie@jacobs-university.de>2009-07-07 10:52:30 +0200
commitc86977b6aaea3f635fc8ebee7c03cb3a0080c9ec (patch)
tree15bac9f8ea3eecc87d26d08f23a003b13376f1f0 /src/wcps/server/test/XmlTest.java
parentf8a46d792930649163ccc3c08b379b16d9d7f772 (diff)
Class renaming + file cleanup
Diffstat (limited to 'src/wcps/server/test/XmlTest.java')
-rw-r--r--src/wcps/server/test/XmlTest.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/wcps/server/test/XmlTest.java b/src/wcps/server/test/XmlTest.java
index f888c6f..cc0c02e 100644
--- a/src/wcps/server/test/XmlTest.java
+++ b/src/wcps/server/test/XmlTest.java
@@ -45,9 +45,10 @@ import org.apache.commons.io.FileUtils;
public class XmlTest {
// Put new test cases in this folder
// public final String PetascopeURL = "http://localhost:8080/PetaScope/WCPService";
- public final String PetascopeURL = "http://kahlua.eecs.jacobs-university.de:8080/petascope/wcps/";
+ public final String PetascopeURL = "http://localhost:8080/petascope/wcps/";
+// public final String PetascopeURL = "http://kahlua.eecs.jacobs-university.de:8080/petascope/wcps/";
- String folder = "testing/testcases-wcps/";
+ String folder = "test/testcases-wcps/";
// How many tests we have to run
int numTests = 0;
// tests
@@ -142,6 +143,11 @@ public class XmlTest {
* Returns a message on error or null otherwise.
**/
public String runOneTest(String xml) throws MalformedURLException, IOException {
+
+// System.out.println("--------------------");
+// System.out.println(xml);
+// System.out.println("\t--------------------");
+
// connect to the servlet
URL servlet = new URL(PetascopeURL);
HttpURLConnection conn = (HttpURLConnection) servlet.openConnection();
@@ -173,6 +179,9 @@ public class XmlTest {
String line1 = cgiOutput.readLine();
String line2 = cgiOutput.readLine();
String line3 = cgiOutput.readLine();
+// System.out.println("\t" + line1);
+// System.out.println("\t" + line2);
+// System.out.println("\t" + line3);
if (line1 != null && line2 != null && line3 != null &&
line2.equals("<h1>An error has occured</h1>"))