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 MessageDispatchTest extends BaseCommandTestSupport { 40 41 42 public static MessageDispatchTest SINGLETON = new MessageDispatchTest(); 43 44 public Object createObject() throws Exception { 45 MessageDispatch info = new MessageDispatch(); 46 populateObject(info); 47 return info; 48 } 49 50 protected void populateObject(Object object) throws Exception { 51 super.populateObject(object); 52 MessageDispatch info = (MessageDispatch) object; 53 54 info.setConsumerId(createConsumerId("ConsumerId:1")); 55 info.setDestination(createActiveMQDestination("Destination:2")); 56 info.setMessage(createMessage("Message:3")); 57 info.setRedeliveryCounter(1); 58 } 59 } 60 | Popular Tags |