1 18 package org.apache.activemq.openwire.v1; 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 ProducerIdTest extends DataFileGeneratorTestSupport { 40 41 42 public static ProducerIdTest SINGLETON = new ProducerIdTest(); 43 44 public Object createObject() throws Exception { 45 ProducerId info = new ProducerId(); 46 populateObject(info); 47 return info; 48 } 49 50 51 protected void populateObject(Object object) throws Exception { 52 super.populateObject(object); 53 ProducerId info = (ProducerId) object; 54 info.setConnectionId("ConnectionId:1"); 55 info.setValue(1); 56 info.setSessionId(2); 57 58 } 59 } 60 | Popular Tags |