cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r933539 - in /cxf/dosgi/trunk/discovery/local/src/test: java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryUtilsTest.java resources/ed2.xml
Date Tue, 13 Apr 2010 10:30:52 GMT
Author: davidb
Date: Tue Apr 13 10:30:51 2010
New Revision: 933539

URL: http://svn.apache.org/viewvc?rev=933539&view=rev
Log:
Enhanced the local discovery tests with more coverage for sets.

Modified:
    cxf/dosgi/trunk/discovery/local/src/test/java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryUtilsTest.java
    cxf/dosgi/trunk/discovery/local/src/test/resources/ed2.xml

Modified: cxf/dosgi/trunk/discovery/local/src/test/java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryUtilsTest.java
URL: http://svn.apache.org/viewvc/cxf/dosgi/trunk/discovery/local/src/test/java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryUtilsTest.java?rev=933539&r1=933538&r2=933539&view=diff
==============================================================================
--- cxf/dosgi/trunk/discovery/local/src/test/java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryUtilsTest.java
(original)
+++ cxf/dosgi/trunk/discovery/local/src/test/java/org/apache/cxf/dosgi/discovery/local/LocalDiscoveryUtilsTest.java
Tue Apr 13 10:30:51 2010
@@ -26,6 +26,7 @@ import java.util.Collections;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
+import java.util.Set;
 
 import junit.framework.TestCase;
 
@@ -150,6 +151,10 @@ public class LocalDiscoveryUtilsTest ext
         
         assertEquals(Arrays.asList(true, false), props.get("bool-list"));
         assertEquals(new HashSet<Object>(), props.get("long-set"));
+        Set<String> stringSet = new HashSet<String>();
+        stringSet.add("Hello there");
+        stringSet.add("How are you?");
+        assertEquals(stringSet, props.get("string-set"));
         assertEquals("Hello", props.get("other1").toString().trim());
         
         List l = (List) props.get("other2");

Modified: cxf/dosgi/trunk/discovery/local/src/test/resources/ed2.xml
URL: http://svn.apache.org/viewvc/cxf/dosgi/trunk/discovery/local/src/test/resources/ed2.xml?rev=933539&r1=933538&r2=933539&view=diff
==============================================================================
--- cxf/dosgi/trunk/discovery/local/src/test/resources/ed2.xml (original)
+++ cxf/dosgi/trunk/discovery/local/src/test/resources/ed2.xml Tue Apr 13 10:30:51 2010
@@ -8,7 +8,6 @@
       </array>
     </property>
     <property name="service.intents">SOAP</property>
-    <!-- Marc: Changed to from exported to imported  -->
     <property name="service.imported.configs" value="org.apache.cxf.ws"/>
     <property name="endpoint.id">foo:bar</property>
   </endpoint-description>
@@ -57,6 +56,12 @@
     <property name="long-set" value-type="long">
       <set/> <!-- empty set -->
     </property>
+    <property name="string-set">
+      <set>
+        <value>Hello there</value>
+        <value>How are you?</value>
+      </set>
+    </property>
     <property name="int-array" value-type="int">
       <array>
         <value>1</value>



Mime
View raw message