[jboss-cvs] JBossAS SVN: r63277 - branches/Branch_4_2/testsuite/src/main/org/jboss/test/security/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu May 31 12:06:01 EDT 2007
Author: scott.stark at jboss.org
Date: 2007-05-31 12:06:01 -0400 (Thu, 31 May 2007)
New Revision: 63277
Modified:
branches/Branch_4_2/testsuite/src/main/org/jboss/test/security/test/CustomPrincipalPropagationUnitTestCase.java
Log:
Use assertEquals to display expected vs actual in errors
Modified: branches/Branch_4_2/testsuite/src/main/org/jboss/test/security/test/CustomPrincipalPropagationUnitTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/security/test/CustomPrincipalPropagationUnitTestCase.java 2007-05-31 15:45:36 UTC (rev 63276)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/security/test/CustomPrincipalPropagationUnitTestCase.java 2007-05-31 16:06:01 UTC (rev 63277)
@@ -126,7 +126,7 @@
String response = formPost.getStatusText();
log.debug("responseCode="+responseCode+", response="+response);
- assertTrue("Saw HTTP_MOVED_TEMP", responseCode == HttpURLConnection.HTTP_MOVED_TEMP);
+ assertEquals("Saw HTTP_MOVED_TEMP", HttpURLConnection.HTTP_MOVED_TEMP, responseCode);
// Follow the redirect to the index.jsp
Header location = formPost.getResponseHeader("Location");
@@ -136,7 +136,7 @@
war1Index, state);
response = war1Index.getStatusText();
log.debug("responseCode="+responseCode+", response="+response);
- assertTrue("Get OK", responseCode == HttpURLConnection.HTTP_OK);
+ assertEquals("Get OK", HttpURLConnection.HTTP_OK, responseCode);
body = war1Index.getResponseBodyAsString();
log.debug("Final result obtained:"+body);
if( body.indexOf("j_security_check") > 0 )
More information about the jboss-cvs-commits
mailing list