use of org.eclipse.persistence.internal.oxm.XMLBinaryDataHelper in project eclipselink by eclipse-ee4j.
the class InlineDataHandlerCollectionTestCases method getControlObject.
@Override
protected Object getControlObject() {
Root obj = new Root();
obj.data = new ArrayList<DataHandler>();
byte[] bytes1 = { 1, 2, 3, 4, 5, 6, 7 };
byte[] bytes2 = { 2, 3, 4, 5, 6, 7, 8 };
byte[] bytes3 = { 3, 4, 5, 6, 7, 8, 9 };
XMLBinaryDataHelper helper = XMLBinaryDataHelper.getXMLBinaryDataHelper();
obj.data.add(helper.convertObjectToDataHandler(bytes1, null));
obj.data.add(helper.convertObjectToDataHandler(bytes2, null));
obj.data.add(helper.convertObjectToDataHandler(bytes3, null));
return obj;
}
Aggregations