JBossWS SVN: r17416 - shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain.
by jbossws-commits@lists.jboss.org
Author: rsvoboda(a)redhat.com
Date: 2013-03-26 07:43:31 -0400 (Tue, 26 Mar 2013)
New Revision: 17416
Modified:
shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/SecurityDomainTestCase.java
Log:
BZ 927558 - added messages to assertions
Modified: shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/SecurityDomainTestCase.java
===================================================================
--- shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/SecurityDomainTestCase.java 2013-03-26 10:34:23 UTC (rev 17415)
+++ shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/SecurityDomainTestCase.java 2013-03-26 11:43:31 UTC (rev 17416)
@@ -99,7 +99,7 @@
} catch (Exception e) {
//expected web layer exception
assertTrue(e.getMessage().contains("Could not send Message"));
- assertTrue(e.getCause().getMessage().contains("403: Forbidden"));
+ assertTrue("Exception Cause message: " + e.getCause().getMessage(), e.getCause().getMessage().contains("403: Forbidden"));
}
try {
port.echo("Hello");
@@ -107,7 +107,7 @@
} catch (Exception e) {
//expected web layer exception
assertTrue(e.getMessage().contains("Could not send Message"));
- assertTrue(e.getCause().getMessage().contains("403: Forbidden"));
+ assertTrue("Exception Cause message: " + e.getCause().getMessage(), e.getCause().getMessage().contains("403: Forbidden"));
}
try {
port.restrictedEcho("Hello");
@@ -115,7 +115,7 @@
} catch (Exception e) {
//expected web layer exception
assertTrue(e.getMessage().contains("Could not send Message"));
- assertTrue(e.getCause().getMessage().contains("403: Forbidden"));
+ assertTrue("Exception Cause message: " + e.getCause().getMessage(), e.getCause().getMessage().contains("403: Forbidden"));
}
}
@@ -129,7 +129,7 @@
} catch (Exception e) {
//expected web layer exception
assertTrue(e.getMessage().contains("Could not send Message"));
- assertTrue(e.getCause().getMessage().contains("401: Unauthorized"));
+ assertTrue("Exception Cause message: " + e.getCause().getMessage(), e.getCause().getMessage().contains("401: Unauthorized"));
}
try {
@@ -138,7 +138,7 @@
} catch (Exception e) {
//expected web layer exception
assertTrue(e.getMessage().contains("Could not send Message"));
- assertTrue(e.getCause().getMessage().contains("401: Unauthorized"));
+ assertTrue("Exception Cause message: " + e.getCause().getMessage(), e.getCause().getMessage().contains("401: Unauthorized"));
}
try {
@@ -147,7 +147,7 @@
} catch (Exception e) {
//expected web layer exception
assertTrue(e.getMessage().contains("Could not send Message"));
- assertTrue(e.getCause().getMessage().contains("401: Unauthorized"));
+ assertTrue("Exception Cause message: " + e.getCause().getMessage(), e.getCause().getMessage().contains("401: Unauthorized"));
}
}
@@ -161,7 +161,7 @@
fail("Authorization exception expected!");
} catch (Exception e) {
//expected EJB3 layer authorization exception
- assertTrue(e.getMessage().contains("not allowed"));
+ assertTrue("Exception message: " + e.getMessage(), e.getMessage().contains("not allowed"));
}
}