[jbossws-commits] JBossWS SVN: r16276 - shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Fri May 11 09:34:49 EDT 2012


Author: ropalka
Date: 2012-05-11 09:34:48 -0400 (Fri, 11 May 2012)
New Revision: 16276

Modified:
   shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140/JBWS3140TestCase.java
Log:
[JBPAPP-7711] ensure archive deployment ordering - hopefully it will fix transient failures

Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140/JBWS3140TestCase.java
===================================================================
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140/JBWS3140TestCase.java	2012-05-11 12:36:25 UTC (rev 16275)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140/JBWS3140TestCase.java	2012-05-11 13:34:48 UTC (rev 16276)
@@ -35,15 +35,12 @@
 public class JBWS3140TestCase extends JBossWSTest
 {
    public final String servletClientURL = "http://" + getServerHost() + ":8080/jbws3140-client/ServletTest";
-   public static Test suite() throws Exception
-   {
-      return new JBossWSTestSetup(JBWS3140TestCase.class, "jbws3140-client.war");
-   }
 
    public void testWsaResponses() throws Exception
    {
       try {
          JBossWSTestHelper.deploy("jbws3140-responses-server.war");
+         JBossWSTestHelper.deploy("jbws3140-client.war");
          HttpURLConnection connection = (HttpURLConnection) new URL(servletClientURL + "?mtom=small").openConnection();
          String result = readConnection(connection).toString();
          assertTrue("SOAPFaultException is expected but received: " + result, result.indexOf("SOAPFaultException") > -1);
@@ -53,20 +50,21 @@
          JBossWSTestHelper.undeploy("jbws3140-responses-server.war");
       }
    }
-   
+
    public void testMtomSmall() throws Exception
    {
       try {
          JBossWSTestHelper.deploy("jbws3140-server.war");
+         JBossWSTestHelper.deploy("jbws3140-client.war");
          HttpURLConnection connection = (HttpURLConnection) new URL(servletClientURL + "?mtom=small").openConnection();
          String result = readConnection(connection).toString();
-         String expected ="--ClientMTOMEnabled--ServerMTOMEnabled--ServerAddressingEnabled--ClientAddressingEnabled";     
+         String expected ="--ClientMTOMEnabled--ServerMTOMEnabled--ServerAddressingEnabled--ClientAddressingEnabled";
          assertTrue("Expected string wasn't found in response: " + result, result.indexOf(expected) > -1);
       } finally {
          JBossWSTestHelper.undeploy("jbws3140-server.war");
       }
    }
-   
+
    private ByteArrayOutputStream readConnection(HttpURLConnection connection) 
    {
       ByteArrayOutputStream bout = new ByteArrayOutputStream();



More information about the jbossws-commits mailing list