activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r783420 - /activemq/sandbox/activemq-flow/activemq-util/src/test/java/org/apache/activemq/util/
Date Wed, 10 Jun 2009 16:50:49 GMT
Author: chirino
Date: Wed Jun 10 16:50:49 2009
New Revision: 783420

URL: http://svn.apache.org/viewvc?rev=783420&view=rev
Log:
porting test cases from trunk to the util package

Added:
    activemq/sandbox/activemq-flow/activemq-util/src/test/java/org/apache/activemq/util/BitArrayBinTest.java
      - copied unchanged from r783310, activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/BitArrayBinTest.java
    activemq/sandbox/activemq-flow/activemq-util/src/test/java/org/apache/activemq/util/DataByteArrayInputStreamTest.java
      - copied unchanged from r783310, activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/DataByteArrayInputStreamTest.java
    activemq/sandbox/activemq-flow/activemq-util/src/test/java/org/apache/activemq/util/DataByteArrayOutputStreamTest.java
      - copied unchanged from r783310, activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/DataByteArrayOutputStreamTest.java
    activemq/sandbox/activemq-flow/activemq-util/src/test/java/org/apache/activemq/util/MessageIdList.java
      - copied unchanged from r783310, activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/MessageIdList.java
    activemq/sandbox/activemq-flow/activemq-util/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java
      - copied, changed from r783310, activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java
    activemq/sandbox/activemq-flow/activemq-util/src/test/java/org/apache/activemq/util/SocketProxy.java
      - copied unchanged from r783310, activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/SocketProxy.java
    activemq/sandbox/activemq-flow/activemq-util/src/test/java/org/apache/activemq/util/URISupportTest.java
      - copied unchanged from r783310, activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/URISupportTest.java

Copied: activemq/sandbox/activemq-flow/activemq-util/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java
(from r783310, activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java)
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-flow/activemq-util/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java?p2=activemq/sandbox/activemq-flow/activemq-util/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java&p1=activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java&r1=783310&r2=783420&rev=783420&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java
(original)
+++ activemq/sandbox/activemq-flow/activemq-util/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java
Wed Jun 10 16:50:49 2009
@@ -25,66 +25,66 @@
 
 import junit.framework.TestCase;
 
-import org.apache.activemq.command.ActiveMQDestination;
-import org.apache.activemq.command.ActiveMQQueue;
-import org.apache.activemq.command.ActiveMQTopic;
+//import org.apache.activemq.command.ActiveMQDestination;
+//import org.apache.activemq.command.ActiveMQQueue;
+//import org.apache.activemq.command.ActiveMQTopic;
 
 public class ReflectionSupportTest extends TestCase {
 	
-    List<ActiveMQDestination> favorites = new ArrayList<ActiveMQDestination>();
+//    List<ActiveMQDestination> favorites = new ArrayList<ActiveMQDestination>();
     String favoritesString = "[queue://test, topic://test]";
-    List<ActiveMQDestination> nonFavorites = new ArrayList<ActiveMQDestination>();
+//    List<ActiveMQDestination> nonFavorites = new ArrayList<ActiveMQDestination>();
     String nonFavoritesString = "[topic://test1]";
     
-    public void setUp() {
-        favorites.add(new ActiveMQQueue("test"));
-        favorites.add(new ActiveMQTopic("test"));
-        nonFavorites.add(new ActiveMQTopic("test1"));
-    }
-
-    public void testSetProperties() throws URISyntaxException {
-        SimplePojo pojo = new SimplePojo();
-        HashMap<String, String> map = new HashMap<String, String>();        
-        map.put("age", "27");
-        map.put("name", "Hiram");
-        map.put("enabled", "true");
-        map.put("uri", "test://value");        
-        map.put("favorites", favoritesString);
-        map.put("nonFavorites", nonFavoritesString);
-        map.put("others", null);
-        
-        IntrospectionSupport.setProperties(pojo, map);
-        
-        assertEquals(27, pojo.getAge());
-        assertEquals("Hiram", pojo.getName());
-        assertEquals(true, pojo.isEnabled());
-        assertEquals(new URI("test://value"), pojo.getUri());
-        assertEquals(favorites, pojo.getFavorites());
-        assertEquals(nonFavorites, pojo.getNonFavorites());
-        assertNull(pojo.getOthers());
-    }
-    
-    public void testGetProperties() {
-    	SimplePojo pojo = new SimplePojo();
-    	pojo.setAge(31);
-    	pojo.setName("Dejan");
-    	pojo.setEnabled(true);
-    	pojo.setFavorites(favorites);
-    	pojo.setNonFavorites(nonFavorites);
-    	pojo.setOthers(null);
-    	
-    	Properties props = new Properties();
-    	
-    	IntrospectionSupport.getProperties(pojo, props, null);
-    	
-    	assertEquals("Dejan", props.get("name"));
-    	assertEquals("31", props.get("age"));
-    	assertEquals("True", props.get("enabled"));
-    	assertEquals(favoritesString, props.get("favorites"));
-    	assertEquals(nonFavoritesString, props.get("nonFavorites"));
-    	assertNull(props.get("others"));
-    }
-    
+//    public void setUp() {
+//        favorites.add(new ActiveMQQueue("test"));
+//        favorites.add(new ActiveMQTopic("test"));
+//        nonFavorites.add(new ActiveMQTopic("test1"));
+//    }
+//
+//    public void testSetProperties() throws URISyntaxException {
+//        SimplePojo pojo = new SimplePojo();
+//        HashMap<String, String> map = new HashMap<String, String>();      
 
+//        map.put("age", "27");
+//        map.put("name", "Hiram");
+//        map.put("enabled", "true");
+//        map.put("uri", "test://value");        
+//        map.put("favorites", favoritesString);
+//        map.put("nonFavorites", nonFavoritesString);
+//        map.put("others", null);
+//        
+//        IntrospectionSupport.setProperties(pojo, map);
+//        
+//        assertEquals(27, pojo.getAge());
+//        assertEquals("Hiram", pojo.getName());
+//        assertEquals(true, pojo.isEnabled());
+//        assertEquals(new URI("test://value"), pojo.getUri());
+//        assertEquals(favorites, pojo.getFavorites());
+//        assertEquals(nonFavorites, pojo.getNonFavorites());
+//        assertNull(pojo.getOthers());
+//    }
+//    
+//    public void testGetProperties() {
+//    	SimplePojo pojo = new SimplePojo();
+//    	pojo.setAge(31);
+//    	pojo.setName("Dejan");
+//    	pojo.setEnabled(true);
+//    	pojo.setFavorites(favorites);
+//    	pojo.setNonFavorites(nonFavorites);
+//    	pojo.setOthers(null);
+//    	
+//    	Properties props = new Properties();
+//    	
+//    	IntrospectionSupport.getProperties(pojo, props, null);
+//    	
+//    	assertEquals("Dejan", props.get("name"));
+//    	assertEquals("31", props.get("age"));
+//    	assertEquals("True", props.get("enabled"));
+//    	assertEquals(favoritesString, props.get("favorites"));
+//    	assertEquals(nonFavoritesString, props.get("nonFavorites"));
+//    	assertNull(props.get("others"));
+//    }
+//    
     public void testSetBoolean() {
                   
         TestWitBoolean target = new TestWitBoolean();



Mime
View raw message