@Test public void testToString() { final EventBusAddressMessageMapping<GetVerticleDeployments.Request, GetVerticleDeployments.Response> mapping = EventBusAddressMessageMapping.<GetVerticleDeployments.Request, GetVerticleDeployments.Response>builder() .address("/xyz") .requestDefaultInstance(GetVerticleDeployments.Request.getDefaultInstance()) .responseDefaultInstance(GetVerticleDeployments.Response.getDefaultInstance()) .build(); final JsonObject json = mapping.toJson(); final JsonObject json2 = JsonUtils.parse(mapping.toString()); assertThat(json.getString("address"), is(json2.getString("address"))); assertThat(json.getString("responseMessageType"), is(json2.getString("responseMessageType"))); assertThat(json.getString("requestMessageType"), is(json2.getString("requestMessageType"))); }
@Override public String toString() { return toJson().toString(); }
EventBusAddressMessageMapping { @Override public String toString() { return toJson().toString(); } }
EventBusAddressMessageMapping { @Override public String toString() { return toJson().toString(); } private  EventBusAddressMessageMapping(); }
EventBusAddressMessageMapping { @Override public String toString() { return toJson().toString(); } private  EventBusAddressMessageMapping(); static Builder<REQUEST, RESPONSE> builder(); void validate(); JsonObject toJson(); @Override String toString(); }
EventBusAddressMessageMapping { @Override public String toString() { return toJson().toString(); } private  EventBusAddressMessageMapping(); static Builder<REQUEST, RESPONSE> builder(); void validate(); JsonObject toJson(); @Override String toString();  }