@Test public void toStringIncludesDataWhenDataPresent() { final EntityMessage message = MessageTestUtil.createMessage( 17, 42, 0, "r1", "r2", "a1", "a2" ); assertTrue( message.toString().matches( ".*Data=.*" ) ); }
@Override public String toString() { return ( isUpdate() ? "U" : "D" ) + "(Type=" + getTypeId() + ",ID=" + getId() + ",RoutingKeys=" + getRoutingKeys() + ( !isDelete() ? ",Data=" + getAttributeValues() : "" ) + ",Links=" + getLinks() + ")"; }
EntityMessage { @Override public String toString() { return ( isUpdate() ? "U" : "D" ) + "(Type=" + getTypeId() + ",ID=" + getId() + ",RoutingKeys=" + getRoutingKeys() + ( !isDelete() ? ",Data=" + getAttributeValues() : "" ) + ",Links=" + getLinks() + ")"; } }
EntityMessage { @Override public String toString() { return ( isUpdate() ? "U" : "D" ) + "(Type=" + getTypeId() + ",ID=" + getId() + ",RoutingKeys=" + getRoutingKeys() + ( !isDelete() ? ",Data=" + getAttributeValues() : "" ) + ",Links=" + getLinks() + ")"; } EntityMessage( final int id,
                        final int typeId,
                        final long timestamp,
                        @Nonnull final Map<String, Serializable> routingKeys,
                        @Nullable final Map<String, Serializable> attributeValues,
                        @Nullable final Set<ChannelLink> links ); }
EntityMessage { @Override public String toString() { return ( isUpdate() ? "U" : "D" ) + "(Type=" + getTypeId() + ",ID=" + getId() + ",RoutingKeys=" + getRoutingKeys() + ( !isDelete() ? ",Data=" + getAttributeValues() : "" ) + ",Links=" + getLinks() + ")"; } EntityMessage( final int id,
                        final int typeId,
                        final long timestamp,
                        @Nonnull final Map<String, Serializable> routingKeys,
                        @Nullable final Map<String, Serializable> attributeValues,
                        @Nullable final Set<ChannelLink> links ); int getTypeId(); int getId(); long getTimestamp(); boolean isUpdate(); boolean isDelete(); @Nullable Map<String, Serializable> getAttributeValues(); @Nonnull Map<String, Serializable> getRoutingKeys(); @Nullable Set<ChannelLink> getLinks(); @Nonnull EntityMessage duplicate(); @Override String toString(); void merge( final EntityMessage message ); }
EntityMessage { @Override public String toString() { return ( isUpdate() ? "U" : "D" ) + "(Type=" + getTypeId() + ",ID=" + getId() + ",RoutingKeys=" + getRoutingKeys() + ( !isDelete() ? ",Data=" + getAttributeValues() : "" ) + ",Links=" + getLinks() + ")"; } EntityMessage( final int id,
                        final int typeId,
                        final long timestamp,
                        @Nonnull final Map<String, Serializable> routingKeys,
                        @Nullable final Map<String, Serializable> attributeValues,
                        @Nullable final Set<ChannelLink> links ); int getTypeId(); int getId(); long getTimestamp(); boolean isUpdate(); boolean isDelete(); @Nullable Map<String, Serializable> getAttributeValues(); @Nonnull Map<String, Serializable> getRoutingKeys(); @Nullable Set<ChannelLink> getLinks(); @Nonnull EntityMessage duplicate(); @Override String toString(); void merge( final EntityMessage message );  }