1 18 package org.apache.activemq.openwire.v3; 19 20 import java.io.DataInputStream ; 21 import java.io.DataOutputStream ; 22 import java.io.IOException ; 23 24 import org.apache.activemq.openwire.*; 25 import org.apache.activemq.command.*; 26 27 28 39 public class ProducerInfoTest extends BaseCommandTestSupport { 40 41 42 public static ProducerInfoTest SINGLETON = new ProducerInfoTest(); 43 44 public Object createObject() throws Exception { 45 ProducerInfo info = new ProducerInfo(); 46 populateObject(info); 47 return info; 48 } 49 50 protected void populateObject(Object object) throws Exception { 51 super.populateObject(object); 52 ProducerInfo info = (ProducerInfo) object; 53 54 info.setProducerId(createProducerId("ProducerId:1")); 55 info.setDestination(createActiveMQDestination("Destination:2")); 56 { 57 BrokerId value[] = new BrokerId[2]; 58 for( int i=0; i < 2; i++ ) { 59 value[i] = createBrokerId("BrokerPath:3"); 60 } 61 info.setBrokerPath(value); 62 } 63 info.setDispatchAsync(true); 64 info.setWindowSize(1); 65 } 66 } 67 | Popular Tags |