Author: richard.opalka(a)jboss.com
Date: 2008-05-20 08:05:42 -0400 (Tue, 20 May 2008)
New Revision: 7105
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1840/JBWS1840TestCase.java
Log:
don't rely on fact methods are called in order they are declared - this is wrong
assumption :(
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1840/JBWS1840TestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1840/JBWS1840TestCase.java 2008-05-20
11:44:13 UTC (rev 7104)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1840/JBWS1840TestCase.java 2008-05-20
12:05:42 UTC (rev 7105)
@@ -62,8 +62,14 @@
port = Service.create(wsdlURL, serviceName).getPort(SecureEndpoint.class);
}
}
+
+ public void testBothScenarios() throws Exception
+ {
+ _testNegative();
+ _testPositive();
+ }
- public void testNegative()
+ public void _testNegative()
{
try
{
@@ -76,7 +82,7 @@
}
}
- public void testPositive()
+ public void _testPositive()
{
Map<String, Object> reqContext =
((BindingProvider)port).getRequestContext();
reqContext.put(BindingProvider.USERNAME_PROPERTY, "kermit");
@@ -84,6 +90,5 @@
String retObj = port.echo("Hello");
assertEquals("Hello", retObj);
-
}
}