From f6b504f622da3b523415af9e5ce59d350007eaf7 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Wed, 2 Jan 2008 07:10:53 +0000 Subject: [PATCH] simplified test case proxy svn changeset:3343/svn branch:trunk --- .../gwt/server/ApplicationServlet.java | 41 ++++--------------- 1 file changed, 8 insertions(+), 33 deletions(-) diff --git a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java index c7bac79c07..bcf32a6c07 100644 --- a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java +++ b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java @@ -777,44 +777,19 @@ public class ApplicationServlet extends HttpServlet { } is.close(); - if (builder != null && builder.length() > 0 - && builder.toString().startsWith("TT-TC=")) { - int lineEnd = builder.indexOf("\n"); - String returnedTestCaseId = builder.substring(builder - .indexOf("TT-TC=") + 6, lineEnd); - builder.replace(0, lineEnd + 1, ""); - - String returnedTestSuiteRunId = null; - - if (testSuiteId != null) { - lineEnd = builder.indexOf("\n"); - returnedTestSuiteRunId = builder.substring(builder - .indexOf("TT-TS-RUN-ID=") + 13, lineEnd); - } - - if (builder.length() < lineEnd + 1) { - throw new RuntimeException( - "The received testscript is illegal. Expected testcase script id in first line " - + " and the actual script in following lines. The script: " - + builder.toString()); - } - + if (builder != null && builder.length() > 0) { page .write("\n"); } } -- 2.39.5