[jbossws-commits] JBossWS SVN: r9914 - in stack/native/trunk/modules/testsuite/native-tests/src/test: resources/jaxws/jbws1582 and 1 other directory.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Wed Apr 29 01:57:38 EDT 2009


Author: richard.opalka at jboss.com
Date: 2009-04-29 01:57:38 -0400 (Wed, 29 Apr 2009)
New Revision: 9914

Modified:
   stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1582/JBWS1582TestCase.java
   stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws1582/attack-message.xml
Log:
[JBWS-1582] finalizing test

Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1582/JBWS1582TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1582/JBWS1582TestCase.java	2009-04-29 05:36:33 UTC (rev 9913)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1582/JBWS1582TestCase.java	2009-04-29 05:57:38 UTC (rev 9914)
@@ -77,7 +77,8 @@
    {
       String response = getResponse("jaxws/jbws1582/attack-message.xml");
       assertTrue(response.contains("HTTP/1.1 500"));
-      assertTrue(response.contains("DOCTYPE is disallowed when the feature"));
+      assertTrue(response.contains("The parser has encountered more than"));
+      assertTrue(response.contains("entity expansions in this document"));
    }
    
    private String getResponse(String requestFile) throws Exception
@@ -117,6 +118,10 @@
          e.printStackTrace();
          log.warn(e.getMessage(), e);
       }
+      finally
+      {
+         this.undeploy("jaxws-jbws1582-attacked.war");
+      }
    }
       
    private static String getContent(InputStream is) throws IOException

Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws1582/attack-message.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws1582/attack-message.xml	2009-04-29 05:36:33 UTC (rev 9913)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws1582/attack-message.xml	2009-04-29 05:57:38 UTC (rev 9914)
@@ -145,7 +145,7 @@
   <env:Header/>
   <env:Body>
     <ns1:echoString xmlns:ns1='http://jbws1582.jaxws.ws.test.jboss.org/'>
-      <arg0>&hello12;</arg0>
+      <arg0>&hello128;</arg0>
     </ns1:echoString>
   </env:Body>
 </env:Envelope>




More information about the jbossws-commits mailing list