Sort & format
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1890 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/junit/server/JUnitHostImpl.java b/user/src/com/google/gwt/junit/server/JUnitHostImpl.java
index ff43a9e..2ce11c5 100644
--- a/user/src/com/google/gwt/junit/server/JUnitHostImpl.java
+++ b/user/src/com/google/gwt/junit/server/JUnitHostImpl.java
@@ -39,6 +39,11 @@
public class JUnitHostImpl extends RemoteServiceServlet implements JUnitHost {
/**
+ * A hook into GWTUnitTestShell, the underlying unit test process.
+ */
+ private static JUnitMessageQueue sHost = null;
+
+ /**
* A maximum timeout to wait for the test system to respond with the next
* test. Practically speaking, the test system should respond nearly instantly
* if there are further tests to run.
@@ -46,11 +51,6 @@
private static final int TIME_TO_WAIT_FOR_TESTNAME = 300000;
/**
- * A hook into GWTUnitTestShell, the underlying unit test process.
- */
- private static JUnitMessageQueue sHost = null;
-
- /**
* Tries to grab the GWTUnitTestShell sHost environment to communicate with
* the real test process.
*/
@@ -77,10 +77,12 @@
}
public TestInfo getFirstMethod(String moduleName) {
- return getHost().getNextTestInfo(getClientId(), moduleName, TIME_TO_WAIT_FOR_TESTNAME);
+ return getHost().getNextTestInfo(getClientId(), moduleName,
+ TIME_TO_WAIT_FOR_TESTNAME);
}
- public TestInfo reportResultsAndGetNextMethod(String moduleName, TestResults results) {
+ public TestInfo reportResultsAndGetNextMethod(String moduleName,
+ TestResults results) {
JUnitMessageQueue host = getHost();
HttpServletRequest request = getThreadLocalRequest();
String agent = request.getHeader("User-Agent");
@@ -93,7 +95,8 @@
trial.setException(deserialize(ew));
}
host.reportResults(moduleName, results);
- return host.getNextTestInfo(getClientId(), moduleName, TIME_TO_WAIT_FOR_TESTNAME);
+ return host.getNextTestInfo(getClientId(), moduleName,
+ TIME_TO_WAIT_FOR_TESTNAME);
}
/**