Trimming trailing spaces, removing tabs by a script
- using tab width of 4 spaces
- trailing space in property files is converted to unicode, so it is
visible in sources
- bat files use CRLF
- all other text files use just LF
diff --git a/appserver/tests/appserv-tests/devtests/persistence/util/WebTestUtil.java b/appserver/tests/appserv-tests/devtests/persistence/util/WebTestUtil.java
index 11ca650..831c4cf 100755
--- a/appserver/tests/appserv-tests/devtests/persistence/util/WebTestUtil.java
+++ b/appserver/tests/appserv-tests/devtests/persistence/util/WebTestUtil.java
@@ -23,7 +23,7 @@
import com.sun.ejte.ccl.reporter.SimpleReporterAdapter;
/** WebTestUtil.java
- * This program opens HttpURLconnection,sends the request to the
+ * This program opens HttpURLconnection,sends the request to the
* servlet , & receives the response from the servlet.
* Using commandline args the user can specify for WebTestUtil
* 1. test suite name
@@ -57,7 +57,7 @@
this.urlPattern = urlPattern;
this.stat = stat;
}
-
+
public void test( String c) throws Exception {
this.test( c, "");
@@ -84,21 +84,21 @@
} else {
InputStream is = conn.getInputStream();
BufferedReader input = new BufferedReader(new InputStreamReader(is));
- String line = null;
- while ((line = input.readLine()) != null) {
+ String line = null;
+ while ((line = input.readLine()) != null) {
// System.out.println("line="+line);
- if (line.contains(EXPECTED_RESPONSE)) {
- stat.addStatus(TEST_CASE, stat.PASS);
- break;
- }
- }
-
- if (line == null) {
- System.out.println("Unable to find " + EXPECTED_RESPONSE +
- " in the response");
- }
- stat.addStatus(TEST_CASE, stat.FAIL);
- }
+ if (line.contains(EXPECTED_RESPONSE)) {
+ stat.addStatus(TEST_CASE, stat.PASS);
+ break;
+ }
+ }
+
+ if (line == null) {
+ System.out.println("Unable to find " + EXPECTED_RESPONSE +
+ " in the response");
+ }
+ stat.addStatus(TEST_CASE, stat.FAIL);
+ }
}
}