[jboss-cvs] JBossAS SVN: r108304 - branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/testutil.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Sep 23 15:41:04 EDT 2010
Author: pferraro
Date: 2010-09-23 15:41:04 -0400 (Thu, 23 Sep 2010)
New Revision: 108304
Modified:
branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/testutil/WebTestBase.java
Log:
change assertTrue(...) to assertEquals(...) so test failure shows unexpected value.
Modified: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/testutil/WebTestBase.java
===================================================================
--- branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/testutil/WebTestBase.java 2010-09-23 19:31:10 UTC (rev 108303)
+++ branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/testutil/WebTestBase.java 2010-09-23 19:41:04 UTC (rev 108304)
@@ -112,8 +112,7 @@
e.printStackTrace();
fail("HttpClient executeMethod fails." +e.toString());
}
- assertTrue("Get OK with url: " +url + " responseCode: " +responseCode
- , responseCode == HttpURLConnection.HTTP_OK);
+ assertEquals("Get OK with url: " + url, HttpURLConnection.HTTP_OK, responseCode);
// Read the response body.
byte[] responseBody = method.getResponseBody();
@@ -191,7 +190,7 @@
e.printStackTrace();
fail("HttpClient executeMethod fails." +e.toString());
}
- assertTrue("Get OK", responseCode == HttpURLConnection.HTTP_OK);
+ assertEquals("Get OK", HttpURLConnection.HTTP_OK, responseCode);
// Read the response body.
byte[] responseBody = method.getResponseBody();
More information about the jboss-cvs-commits
mailing list