Author: richard.opalka(a)jboss.com
Date: 2008-05-20 08:30:59 -0400 (Tue, 20 May 2008)
New Revision: 7106
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/secureejb/SecureEJBTestCase.java
Log:
don't rely on fact methods are called in order they are declared - this is wrong
assumption :(
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/secureejb/SecureEJBTestCase.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/secureejb/SecureEJBTestCase.java 2008-05-20
12:05:42 UTC (rev 7105)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/secureejb/SecureEJBTestCase.java 2008-05-20
12:30:59 UTC (rev 7106)
@@ -51,8 +51,18 @@
{
return new JBossWSTestSetup(SecureEJBTestCase.class,
"jaxrpc-samples-secureejb.jar, jaxrpc-samples-secureejb-client.jar");
}
+
+ public void testAllScenarios() throws Exception
+ {
+ _testRoleSecuredWSDLAccess();
+ _testRoleSecuredServiceAccess();
+ _testBasicSecuredSLSB();
+ _testBasicSecuredServiceAccess();
+ _testConfidentialSecuredWSDLAccess();
+ _testConfidentialServiceAccess();
+ }
- public void testRoleSecuredWSDLAccess() throws Exception
+ public void _testRoleSecuredWSDLAccess() throws Exception
{
URL wsdlURL = new URL("http://" + getServerHost() +
":8080/jaxrpc-samples-ejb/RoleSecured?wsdl");
WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
@@ -60,7 +70,7 @@
assertNotNull("Expect unsecured wsdl access by default for jaxrpc",
wsdl);
}
- public void testRoleSecuredServiceAccess() throws Exception
+ public void _testRoleSecuredServiceAccess() throws Exception
{
InitialContext iniCtx = getInitialContext();
Service service =
(Service)iniCtx.lookup("java:comp/env/service/RoleSecured");
@@ -87,7 +97,7 @@
/** Test that the remote access to this bean is unchecked
*/
- public void testBasicSecuredSLSB() throws Exception
+ public void _testBasicSecuredSLSB() throws Exception
{
InitialContext iniCtx = getInitialContext();
OrganizationHome home =
(OrganizationHome)iniCtx.lookup("ejb/BasicSecuredSLSB");
@@ -97,7 +107,7 @@
assertEquals("The 'mafia' boss is currently out of office, please call
again.", info);
}
- public void testBasicSecuredServiceAccess() throws Exception
+ public void _testBasicSecuredServiceAccess() throws Exception
{
InitialContext iniCtx = getInitialContext();
Service service =
(Service)iniCtx.lookup("java:comp/env/service/BasicSecured");
@@ -122,7 +132,7 @@
assertEquals("The 'mafia' boss is currently out of office, please call
again.", info);
}
- public void testConfidentialSecuredWSDLAccess() throws Exception
+ public void _testConfidentialSecuredWSDLAccess() throws Exception
{
URL wsdlURL = new URL("http://" + getServerHost() +
":8080/jaxrpc-samples-ejb/ConfidentialSecured?wsdl");
WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
@@ -130,7 +140,7 @@
assertNotNull("Expect unsecured wsdl access", wsdl);
}
- public void testConfidentialServiceAccess() throws Exception
+ public void _testConfidentialServiceAccess() throws Exception
{
InitialContext iniCtx = getInitialContext();
Service service =
(Service)iniCtx.lookup("java:comp/env/service/ConfidentialSecured");