@Test public void testToString() { PacketPolicy p = new PacketPolicy("name", ImmutableList.of(new Return(Drop.instance())), _defaultAction); assertTrue(p.toString().contains(p.getClass().getSimpleName())); assertTrue(p.toString().contains("name")); assertTrue(p.toString().contains(p.getName())); }
@Override public String toString() { return MoreObjects.toStringHelper(this).add("name", _name).toString(); }
PacketPolicy implements Serializable { @Override public String toString() { return MoreObjects.toStringHelper(this).add("name", _name).toString(); } }
PacketPolicy implements Serializable { @Override public String toString() { return MoreObjects.toStringHelper(this).add("name", _name).toString(); } PacketPolicy(String name, List<Statement> statements, Return defaultAction); }
PacketPolicy implements Serializable { @Override public String toString() { return MoreObjects.toStringHelper(this).add("name", _name).toString(); } PacketPolicy(String name, List<Statement> statements, Return defaultAction); @Nonnull @JsonProperty(PROP_NAME) String getName(); @Nonnull @JsonProperty(PROP_STATEMENTS) List<Statement> getStatements(); @Nonnull @JsonProperty(PROP_DEFAULT_ACTION) Return getDefaultAction(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
PacketPolicy implements Serializable { @Override public String toString() { return MoreObjects.toStringHelper(this).add("name", _name).toString(); } PacketPolicy(String name, List<Statement> statements, Return defaultAction); @Nonnull @JsonProperty(PROP_NAME) String getName(); @Nonnull @JsonProperty(PROP_STATEMENTS) List<Statement> getStatements(); @Nonnull @JsonProperty(PROP_DEFAULT_ACTION) Return getDefaultAction(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }