@Test public void testToString() { final ChangeSetMessage changeSet = ChangeSetMessage.create( null, null, null, new ChannelChange[ 0 ], new EntityChange[ 0 ] ); final MessageResponse action = new MessageResponse( 1, changeSet, null ); assertEquals( action.toString(), "MessageResponse[Type=update,RequestId=null,ChangeIndex=0,CompletionAction.null?=true,UpdatedEntities.size=0]" ); action.nextEntityToLink(); assertEquals( action.toString(), "MessageResponse[Type=update,RequestId=null,ChangeIndex=0,CompletionAction.null?=true,UpdatedEntities.size=0]" ); ReplicantTestUtil.disableNames(); assertEquals( action.toString(), "replicant.MessageResponse@" + Integer.toHexString( System.identityHashCode( action ) ) ); }
@Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "MessageResponse[" + "Type=" + _message.getType() + ",RequestId=" + _message.getRequestId() + ",ChangeIndex=" + _entityChangeIndex + ",CompletionAction.null?=" + ( null == getCompletionAction() ) + ",UpdatedEntities.size=" + ( null == _updatedEntities ? 0 : _updatedEntities.size() ) + "]"; } else { return super.toString(); } }
MessageResponse { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "MessageResponse[" + "Type=" + _message.getType() + ",RequestId=" + _message.getRequestId() + ",ChangeIndex=" + _entityChangeIndex + ",CompletionAction.null?=" + ( null == getCompletionAction() ) + ",UpdatedEntities.size=" + ( null == _updatedEntities ? 0 : _updatedEntities.size() ) + "]"; } else { return super.toString(); } } }
MessageResponse { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "MessageResponse[" + "Type=" + _message.getType() + ",RequestId=" + _message.getRequestId() + ",ChangeIndex=" + _entityChangeIndex + ",CompletionAction.null?=" + ( null == getCompletionAction() ) + ",UpdatedEntities.size=" + ( null == _updatedEntities ? 0 : _updatedEntities.size() ) + "]"; } else { return super.toString(); } } MessageResponse( final int schemaId,
                   @Nonnull final ServerToClientMessage message,
                   @Nullable final RequestEntry request ); }
MessageResponse { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "MessageResponse[" + "Type=" + _message.getType() + ",RequestId=" + _message.getRequestId() + ",ChangeIndex=" + _entityChangeIndex + ",CompletionAction.null?=" + ( null == getCompletionAction() ) + ",UpdatedEntities.size=" + ( null == _updatedEntities ? 0 : _updatedEntities.size() ) + "]"; } else { return super.toString(); } } MessageResponse( final int schemaId,
                   @Nonnull final ServerToClientMessage message,
                   @Nullable final RequestEntry request ); @Override String toString(); }
MessageResponse { @Override public String toString() { if ( Replicant.areNamesEnabled() ) { return "MessageResponse[" + "Type=" + _message.getType() + ",RequestId=" + _message.getRequestId() + ",ChangeIndex=" + _entityChangeIndex + ",CompletionAction.null?=" + ( null == getCompletionAction() ) + ",UpdatedEntities.size=" + ( null == _updatedEntities ? 0 : _updatedEntities.size() ) + "]"; } else { return super.toString(); } } MessageResponse( final int schemaId,
                   @Nonnull final ServerToClientMessage message,
                   @Nullable final RequestEntry request ); @Override String toString();  }