@Test public void testToString() { Environment e = new Environment( "testrig", Sets.newTreeSet(), Sets.newTreeSet(), Sets.newTreeSet(), Maps.newTreeMap(), Maps.newTreeMap(), Sets.newTreeSet()); assertThat( e.toString(), equalTo( "Environment{testrigName=testrig, " + "edgeBlacklist=[], interfaceBlacklist=[], " + "nodeBlacklist=[], bgpTables={}, routingTables={}, " + "externalBgpAnnouncements=[]}")); }
@Override public String toString() { return MoreObjects.toStringHelper(Environment.class) .add(PROP_TESTRIG_NAME, _testrigName) .add(PROP_EDGE_BLACKLIST, _edgeBlacklist) .add(PROP_INTERFACE_BLACKLIST, _interfaceBlacklist) .add(PROP_NODE_BLACKLIST, _nodeBlacklist) .add(PROP_ENVIRONMENT_BGP_TABLES, _bgpTables) .add(PROP_ENVIRONMENT_ROUTING_TABLES, _routingTables) .add(PROP_EXTERNAL_BGP_ANNOUNCEMENTS, _externalBgpAnnouncements) .toString(); }
Environment { @Override public String toString() { return MoreObjects.toStringHelper(Environment.class) .add(PROP_TESTRIG_NAME, _testrigName) .add(PROP_EDGE_BLACKLIST, _edgeBlacklist) .add(PROP_INTERFACE_BLACKLIST, _interfaceBlacklist) .add(PROP_NODE_BLACKLIST, _nodeBlacklist) .add(PROP_ENVIRONMENT_BGP_TABLES, _bgpTables) .add(PROP_ENVIRONMENT_ROUTING_TABLES, _routingTables) .add(PROP_EXTERNAL_BGP_ANNOUNCEMENTS, _externalBgpAnnouncements) .toString(); } }
Environment { @Override public String toString() { return MoreObjects.toStringHelper(Environment.class) .add(PROP_TESTRIG_NAME, _testrigName) .add(PROP_EDGE_BLACKLIST, _edgeBlacklist) .add(PROP_INTERFACE_BLACKLIST, _interfaceBlacklist) .add(PROP_NODE_BLACKLIST, _nodeBlacklist) .add(PROP_ENVIRONMENT_BGP_TABLES, _bgpTables) .add(PROP_ENVIRONMENT_ROUTING_TABLES, _routingTables) .add(PROP_EXTERNAL_BGP_ANNOUNCEMENTS, _externalBgpAnnouncements) .toString(); } @JsonCreator  Environment(
      @JsonProperty(PROP_TESTRIG_NAME) String testrigName,
      @JsonProperty(PROP_EDGE_BLACKLIST) @Nullable SortedSet<Edge> edgeBlacklist,
      @JsonProperty(PROP_INTERFACE_BLACKLIST) @Nullable
          SortedSet<NodeInterfacePair> interfaceBlacklist,
      @JsonProperty(PROP_NODE_BLACKLIST) @Nullable SortedSet<String> nodeBlacklist,
      @JsonProperty(PROP_ENVIRONMENT_BGP_TABLES) @Nullable SortedMap<String, String> bgpTables,
      @JsonProperty(PROP_ENVIRONMENT_ROUTING_TABLES) @Nullable
          SortedMap<String, String> routingTables,
      @JsonProperty(PROP_EXTERNAL_BGP_ANNOUNCEMENTS) @Nullable
          SortedSet<BgpAdvertisement> externalBgpAnnouncements); }
Environment { @Override public String toString() { return MoreObjects.toStringHelper(Environment.class) .add(PROP_TESTRIG_NAME, _testrigName) .add(PROP_EDGE_BLACKLIST, _edgeBlacklist) .add(PROP_INTERFACE_BLACKLIST, _interfaceBlacklist) .add(PROP_NODE_BLACKLIST, _nodeBlacklist) .add(PROP_ENVIRONMENT_BGP_TABLES, _bgpTables) .add(PROP_ENVIRONMENT_ROUTING_TABLES, _routingTables) .add(PROP_EXTERNAL_BGP_ANNOUNCEMENTS, _externalBgpAnnouncements) .toString(); } @JsonCreator  Environment(
      @JsonProperty(PROP_TESTRIG_NAME) String testrigName,
      @JsonProperty(PROP_EDGE_BLACKLIST) @Nullable SortedSet<Edge> edgeBlacklist,
      @JsonProperty(PROP_INTERFACE_BLACKLIST) @Nullable
          SortedSet<NodeInterfacePair> interfaceBlacklist,
      @JsonProperty(PROP_NODE_BLACKLIST) @Nullable SortedSet<String> nodeBlacklist,
      @JsonProperty(PROP_ENVIRONMENT_BGP_TABLES) @Nullable SortedMap<String, String> bgpTables,
      @JsonProperty(PROP_ENVIRONMENT_ROUTING_TABLES) @Nullable
          SortedMap<String, String> routingTables,
      @JsonProperty(PROP_EXTERNAL_BGP_ANNOUNCEMENTS) @Nullable
          SortedSet<BgpAdvertisement> externalBgpAnnouncements); @JsonProperty(PROP_TESTRIG_NAME) String getTestrigName(); @JsonProperty(PROP_EDGE_BLACKLIST) SortedSet<Edge> getEdgeBlacklist(); @JsonProperty(PROP_INTERFACE_BLACKLIST) SortedSet<NodeInterfacePair> getInterfaceBlacklist(); @JsonProperty(PROP_NODE_BLACKLIST) SortedSet<String> getNodeBlacklist(); @JsonProperty(PROP_ENVIRONMENT_BGP_TABLES) SortedMap<String, String> getBgpTables(); @JsonProperty(PROP_ENVIRONMENT_ROUTING_TABLES) SortedMap<String, String> getRoutingTables(); @JsonProperty(PROP_EXTERNAL_BGP_ANNOUNCEMENTS) SortedSet<BgpAdvertisement> getExternalBgpAnnouncements(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
Environment { @Override public String toString() { return MoreObjects.toStringHelper(Environment.class) .add(PROP_TESTRIG_NAME, _testrigName) .add(PROP_EDGE_BLACKLIST, _edgeBlacklist) .add(PROP_INTERFACE_BLACKLIST, _interfaceBlacklist) .add(PROP_NODE_BLACKLIST, _nodeBlacklist) .add(PROP_ENVIRONMENT_BGP_TABLES, _bgpTables) .add(PROP_ENVIRONMENT_ROUTING_TABLES, _routingTables) .add(PROP_EXTERNAL_BGP_ANNOUNCEMENTS, _externalBgpAnnouncements) .toString(); } @JsonCreator  Environment(
      @JsonProperty(PROP_TESTRIG_NAME) String testrigName,
      @JsonProperty(PROP_EDGE_BLACKLIST) @Nullable SortedSet<Edge> edgeBlacklist,
      @JsonProperty(PROP_INTERFACE_BLACKLIST) @Nullable
          SortedSet<NodeInterfacePair> interfaceBlacklist,
      @JsonProperty(PROP_NODE_BLACKLIST) @Nullable SortedSet<String> nodeBlacklist,
      @JsonProperty(PROP_ENVIRONMENT_BGP_TABLES) @Nullable SortedMap<String, String> bgpTables,
      @JsonProperty(PROP_ENVIRONMENT_ROUTING_TABLES) @Nullable
          SortedMap<String, String> routingTables,
      @JsonProperty(PROP_EXTERNAL_BGP_ANNOUNCEMENTS) @Nullable
          SortedSet<BgpAdvertisement> externalBgpAnnouncements); @JsonProperty(PROP_TESTRIG_NAME) String getTestrigName(); @JsonProperty(PROP_EDGE_BLACKLIST) SortedSet<Edge> getEdgeBlacklist(); @JsonProperty(PROP_INTERFACE_BLACKLIST) SortedSet<NodeInterfacePair> getInterfaceBlacklist(); @JsonProperty(PROP_NODE_BLACKLIST) SortedSet<String> getNodeBlacklist(); @JsonProperty(PROP_ENVIRONMENT_BGP_TABLES) SortedMap<String, String> getBgpTables(); @JsonProperty(PROP_ENVIRONMENT_ROUTING_TABLES) SortedMap<String, String> getRoutingTables(); @JsonProperty(PROP_EXTERNAL_BGP_ANNOUNCEMENTS) SortedSet<BgpAdvertisement> getExternalBgpAnnouncements(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }