1 18 package org.apache.activemq.openwire.v2; 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 DataResponseTest extends ResponseTest { 40 41 42 public static DataResponseTest SINGLETON = new DataResponseTest(); 43 44 public Object createObject() throws Exception { 45 DataResponse info = new DataResponse(); 46 populateObject(info); 47 return info; 48 } 49 50 protected void populateObject(Object object) throws Exception { 51 super.populateObject(object); 52 DataResponse info = (DataResponse) object; 53 54 info.setData(createDataStructure("Data:1")); 55 } 56 } 57 | Popular Tags |