@Test public void testGetData() throws IOException { InputStream data = emptyDataPacket.getData(); try { assertEquals(-1, data.read()); } finally { data.close(); } }
@Override public InputStream getData() { return new ByteArrayInputStream(new byte[0]); }
EmptyDataPacket implements DataPacket { @Override public InputStream getData() { return new ByteArrayInputStream(new byte[0]); } }
EmptyDataPacket implements DataPacket { @Override public InputStream getData() { return new ByteArrayInputStream(new byte[0]); } EmptyDataPacket(Map<String, String> attributes); }
EmptyDataPacket implements DataPacket { @Override public InputStream getData() { return new ByteArrayInputStream(new byte[0]); } EmptyDataPacket(Map<String, String> attributes); @Override Map<String, String> getAttributes(); @Override InputStream getData(); @Override long getSize(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); }
EmptyDataPacket implements DataPacket { @Override public InputStream getData() { return new ByteArrayInputStream(new byte[0]); } EmptyDataPacket(Map<String, String> attributes); @Override Map<String, String> getAttributes(); @Override InputStream getData(); @Override long getSize(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); static final Creator<EmptyDataPacket> CREATOR; }