@Test public void conversionToAndFrom() { ServiceEndpoint endpoint = new ServiceEndpoint("address", "sep", "service"); ServiceEndpointBean bean = new ServiceEndpointBean(endpoint); assertThat(new ServiceEndpointBean(bean.toServiceEndpoint()), equalTo(bean)); }
public ServiceEndpoint toServiceEndpoint() { return new ServiceEndpoint(address, name, service); }
ServiceEndpointBean { public ServiceEndpoint toServiceEndpoint() { return new ServiceEndpoint(address, name, service); } }
ServiceEndpointBean { public ServiceEndpoint toServiceEndpoint() { return new ServiceEndpoint(address, name, service); } @JsonCreator private  ServiceEndpointBean();  ServiceEndpointBean(ServiceEndpoint endpoint); }
ServiceEndpointBean { public ServiceEndpoint toServiceEndpoint() { return new ServiceEndpoint(address, name, service); } @JsonCreator private  ServiceEndpointBean();  ServiceEndpointBean(ServiceEndpoint endpoint); @Override boolean equals(Object o); @Override int hashCode(); ServiceEndpoint toServiceEndpoint(); }
ServiceEndpointBean { public ServiceEndpoint toServiceEndpoint() { return new ServiceEndpoint(address, name, service); } @JsonCreator private  ServiceEndpointBean();  ServiceEndpointBean(ServiceEndpoint endpoint); @Override boolean equals(Object o); @Override int hashCode(); ServiceEndpoint toServiceEndpoint(); public String address; public String name; public String service; }