@Test public void testToStringOnEmptyDelivery() throws Exception { DeliveryImpl delivery = new DeliveryImpl(null, Mockito.mock(LinkImpl.class), null); assertNotNull(delivery.toString()); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("DeliveryImpl [_tag=").append(Arrays.toString(_tag)) .append(", _link=").append(_link) .append(", _deliveryState=").append(_deliveryState) .append(", _settled=").append(_settled) .append(", _remoteSettled=").append(_remoteSettled) .append(", _remoteDeliveryState=").append(_remoteDeliveryState) .append(", _flags=").append(_flags) .append(", _defaultDeliveryState=").append(_defaultDeliveryState) .append(", _transportDelivery=").append(_transportDelivery) .append(", _data Size=").append(getDataLength()) .append(", _complete=").append(_complete) .append(", _updated=").append(_updated) .append(", _done=").append(_done) .append("]"); return builder.toString(); }
DeliveryImpl implements Delivery { @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("DeliveryImpl [_tag=").append(Arrays.toString(_tag)) .append(", _link=").append(_link) .append(", _deliveryState=").append(_deliveryState) .append(", _settled=").append(_settled) .append(", _remoteSettled=").append(_remoteSettled) .append(", _remoteDeliveryState=").append(_remoteDeliveryState) .append(", _flags=").append(_flags) .append(", _defaultDeliveryState=").append(_defaultDeliveryState) .append(", _transportDelivery=").append(_transportDelivery) .append(", _data Size=").append(getDataLength()) .append(", _complete=").append(_complete) .append(", _updated=").append(_updated) .append(", _done=").append(_done) .append("]"); return builder.toString(); } }
DeliveryImpl implements Delivery { @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("DeliveryImpl [_tag=").append(Arrays.toString(_tag)) .append(", _link=").append(_link) .append(", _deliveryState=").append(_deliveryState) .append(", _settled=").append(_settled) .append(", _remoteSettled=").append(_remoteSettled) .append(", _remoteDeliveryState=").append(_remoteDeliveryState) .append(", _flags=").append(_flags) .append(", _defaultDeliveryState=").append(_defaultDeliveryState) .append(", _transportDelivery=").append(_transportDelivery) .append(", _data Size=").append(getDataLength()) .append(", _complete=").append(_complete) .append(", _updated=").append(_updated) .append(", _done=").append(_done) .append("]"); return builder.toString(); } DeliveryImpl(final byte[] tag, final LinkImpl link, DeliveryImpl previous); }
DeliveryImpl implements Delivery { @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("DeliveryImpl [_tag=").append(Arrays.toString(_tag)) .append(", _link=").append(_link) .append(", _deliveryState=").append(_deliveryState) .append(", _settled=").append(_settled) .append(", _remoteSettled=").append(_remoteSettled) .append(", _remoteDeliveryState=").append(_remoteDeliveryState) .append(", _flags=").append(_flags) .append(", _defaultDeliveryState=").append(_defaultDeliveryState) .append(", _transportDelivery=").append(_transportDelivery) .append(", _data Size=").append(getDataLength()) .append(", _complete=").append(_complete) .append(", _updated=").append(_updated) .append(", _done=").append(_done) .append("]"); return builder.toString(); } DeliveryImpl(final byte[] tag, final LinkImpl link, DeliveryImpl previous); @Override byte[] getTag(); @Override LinkImpl getLink(); @Override DeliveryState getLocalState(); @Override DeliveryState getRemoteState(); @Override boolean remotelySettled(); @Override void setMessageFormat(int messageFormat); @Override int getMessageFormat(); @Override void disposition(final DeliveryState state); @Override void settle(); @Override DeliveryImpl next(); @Override void free(); @Override DeliveryImpl getWorkNext(); @Override boolean isSettled(); @Override int available(); @Override boolean isWritable(); @Override boolean isReadable(); @Override boolean isAborted(); @Override boolean isPartial(); @Override boolean isUpdated(); @Override void clear(); @Override boolean isBuffered(); @Override Object getContext(); @Override void setContext(Object context); @Override Record attachments(); @Override String toString(); @Override int pending(); @Override void setDefaultDeliveryState(DeliveryState state); @Override DeliveryState getDefaultDeliveryState(); }
DeliveryImpl implements Delivery { @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("DeliveryImpl [_tag=").append(Arrays.toString(_tag)) .append(", _link=").append(_link) .append(", _deliveryState=").append(_deliveryState) .append(", _settled=").append(_settled) .append(", _remoteSettled=").append(_remoteSettled) .append(", _remoteDeliveryState=").append(_remoteDeliveryState) .append(", _flags=").append(_flags) .append(", _defaultDeliveryState=").append(_defaultDeliveryState) .append(", _transportDelivery=").append(_transportDelivery) .append(", _data Size=").append(getDataLength()) .append(", _complete=").append(_complete) .append(", _updated=").append(_updated) .append(", _done=").append(_done) .append("]"); return builder.toString(); } DeliveryImpl(final byte[] tag, final LinkImpl link, DeliveryImpl previous); @Override byte[] getTag(); @Override LinkImpl getLink(); @Override DeliveryState getLocalState(); @Override DeliveryState getRemoteState(); @Override boolean remotelySettled(); @Override void setMessageFormat(int messageFormat); @Override int getMessageFormat(); @Override void disposition(final DeliveryState state); @Override void settle(); @Override DeliveryImpl next(); @Override void free(); @Override DeliveryImpl getWorkNext(); @Override boolean isSettled(); @Override int available(); @Override boolean isWritable(); @Override boolean isReadable(); @Override boolean isAborted(); @Override boolean isPartial(); @Override boolean isUpdated(); @Override void clear(); @Override boolean isBuffered(); @Override Object getContext(); @Override void setContext(Object context); @Override Record attachments(); @Override String toString(); @Override int pending(); @Override void setDefaultDeliveryState(DeliveryState state); @Override DeliveryState getDefaultDeliveryState(); static final int DEFAULT_MESSAGE_FORMAT; }