@Test public void testJsonSerialization() { TunnelConfiguration tc = TunnelConfiguration.builder() .setDestinationAddress(Ip.parse("1.1.1.1")) .setSourceAddress(Ip.parse("2.2.2.2")) .build(); assertThat(BatfishObjectMapper.clone(tc, TunnelConfiguration.class), equalTo(tc)); }
public static Builder builder() { return new Builder(); }
TunnelConfiguration implements Serializable { public static Builder builder() { return new Builder(); } }
TunnelConfiguration implements Serializable { public static Builder builder() { return new Builder(); } private  TunnelConfiguration(Ip sourceAddress, Ip destinationAddress); }
TunnelConfiguration implements Serializable { public static Builder builder() { return new Builder(); } private  TunnelConfiguration(Ip sourceAddress, Ip destinationAddress); @JsonProperty(PROP_SOURCE_ADDRESS) @Nonnull Ip getSourceAddress(); @JsonProperty(PROP_DESTINATION_ADDRESS) @Nonnull Ip getDestinationAddress(); @Override boolean equals(Object o); @Override int hashCode(); static Builder builder(); }
TunnelConfiguration implements Serializable { public static Builder builder() { return new Builder(); } private  TunnelConfiguration(Ip sourceAddress, Ip destinationAddress); @JsonProperty(PROP_SOURCE_ADDRESS) @Nonnull Ip getSourceAddress(); @JsonProperty(PROP_DESTINATION_ADDRESS) @Nonnull Ip getDestinationAddress(); @Override boolean equals(Object o); @Override int hashCode(); static Builder builder();  }