cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r609011 - in /incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332: Cxf1332Impl.java Cxf1332Test.java
Date Fri, 04 Jan 2008 21:15:17 GMT
Author: bimargulies
Date: Fri Jan  4 13:15:16 2008
New Revision: 609011

URL: http://svn.apache.org/viewvc?rev=609011&view=rev
Log:
Make test a bit more robust.

Modified:
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Impl.java
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Test.java

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Impl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Impl.java?rev=609011&r1=609010&r2=609011&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Impl.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Impl.java Fri
Jan  4 13:15:16 2008
@@ -29,10 +29,17 @@
  */
 @WebService(targetNamespace = "urn:org.apache.cxf.1332")
 public class Cxf1332Impl implements Cxf1332 {
+    private static String[] lastStrings;
+    
     /** {@inheritDoc}*/
     @WebMethod(operationName = "SendData", action = "")
     @WebResult(name = "result", targetNamespace = "urn:org.apache.cxf.1332.result")
     public String hostSendData(@WebParam(name = "params", targetNamespace = "") String[]
strs) {
+        lastStrings = strs;
         return "Bloop";
+    }
+
+    public static String[] getLastStrings() {
+        return lastStrings;
     }
 }

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Test.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Test.java?rev=609011&r1=609010&r2=609011&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Test.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Test.java Fri
Jan  4 13:15:16 2008
@@ -42,9 +42,11 @@
     @Test
     public void tryToSendStringArray() throws Exception {
         Cxf1332 client = getBean(Cxf1332.class, "client");
-        client.hostSendData(new String[] {"a", "b", "c"});
+        String[] a = new String[] {"a", "b", "c"};
+        client.hostSendData(a);
+        assertArrayEquals(a, Cxf1332Impl.getLastStrings());
     }
-
+    
     /** {@inheritDoc}*/
     @Override
     protected String[] getConfigLocations() {



Mime
View raw message