Author: rsvoboda(a)redhat.com
Date: 2013-10-18 10:04:05 -0400 (Fri, 18 Oct 2013)
New Revision: 18012
Modified:
projects/wsi-bp-test/trunk/bp20-tests/src/test/java/org/jboss/test/ws/jaxws/bp20/wsa/test1190/Test119XTestCase.java
projects/wsi-bp-test/trunk/bp20-tests/src/test/java/org/jboss/wsf/test/TestServlet.java
Log:
WSI: bp20 code style fixes
Modified:
projects/wsi-bp-test/trunk/bp20-tests/src/test/java/org/jboss/test/ws/jaxws/bp20/wsa/test1190/Test119XTestCase.java
===================================================================
---
projects/wsi-bp-test/trunk/bp20-tests/src/test/java/org/jboss/test/ws/jaxws/bp20/wsa/test1190/Test119XTestCase.java 2013-10-18
12:41:51 UTC (rev 18011)
+++
projects/wsi-bp-test/trunk/bp20-tests/src/test/java/org/jboss/test/ws/jaxws/bp20/wsa/test1190/Test119XTestCase.java 2013-10-18
14:04:05 UTC (rev 18012)
@@ -237,7 +237,9 @@
StringBuffer buffer = new StringBuffer();
while ((inputLine = in.readLine()) != null)
+ {
buffer.append(inputLine);
+ }
in.close();
System.out.println(buffer.toString());
Modified:
projects/wsi-bp-test/trunk/bp20-tests/src/test/java/org/jboss/wsf/test/TestServlet.java
===================================================================
---
projects/wsi-bp-test/trunk/bp20-tests/src/test/java/org/jboss/wsf/test/TestServlet.java 2013-10-18
12:41:51 UTC (rev 18011)
+++
projects/wsi-bp-test/trunk/bp20-tests/src/test/java/org/jboss/wsf/test/TestServlet.java 2013-10-18
14:04:05 UTC (rev 18012)
@@ -51,10 +51,14 @@
{
String helperClassName = req.getParameter("helper");
if (helperClassName == null || helperClassName.length() == 0)
+ {
throw new ServletException("helper not specified!");
+ }
String path = req.getParameter("path");
if (path == null || path.length() == 0)
+ {
throw new ServletException("path not specified!");
+ }
try
{
ClientHelper helper = (ClientHelper)
Class.forName(helperClassName).newInstance();
@@ -71,8 +75,7 @@
int testsRun = 0;
if (methodName != null && methodName.length() > 0)
{
- Method m = null;
- m = helper.getClass().getMethod(methodName);
+ Method m = helper.getClass().getMethod(methodName);
testsRun++;
invokeMethod(m, helper, failedTests, errorTests);
}
@@ -100,14 +103,18 @@
{
w.print(it.next());
if (it.hasNext())
+ {
w.print(", ");
+ }
}
res.getWriter().print(" # Error tests: ");
for (Iterator<String> it = errorTests.iterator(); it.hasNext();)
{
w.print(it.next());
if (it.hasNext())
+ {
w.print(", ");
+ }
}
}
}
Show replies by date