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 DataArrayResponseTest extends ResponseTest { 40 41 42 public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest(); 43 44 public Object createObject() throws Exception { 45 DataArrayResponse info = new DataArrayResponse(); 46 populateObject(info); 47 return info; 48 } 49 50 51 protected void populateObject(Object object) throws Exception { 52 super.populateObject(object); 53 DataArrayResponse info = (DataArrayResponse) object; 54 55 { 56 DataStructure value[] = new DataStructure[2]; 57 for( int i=0; i < 2; i++ ) { 58 value[i] = createDataStructure("Data:1"); 59 } 60 info.setData(value); 61 } 62 63 } 64 } 65 | Popular Tags |