@Test public void test_args_not_in_toString() { DiagnosticRequest request = new DiagnosticRequest(Closeable.class, "run", 1, 2, 3); assertThat(request.toString(), is(equalTo("DiagnosticRequest{serviceInterface='java.io.Closeable', methodName='run'}"))); }
@Override public String toString() { final StringBuilder sb = new StringBuilder("DiagnosticRequest{"); sb.append("serviceInterface='").append(serviceInterface.getName()).append('\''); sb.append(", methodName='").append(methodName).append('\''); sb.append('}'); return sb.toString(); }
DiagnosticRequest implements Serializable { @Override public String toString() { final StringBuilder sb = new StringBuilder("DiagnosticRequest{"); sb.append("serviceInterface='").append(serviceInterface.getName()).append('\''); sb.append(", methodName='").append(methodName).append('\''); sb.append('}'); return sb.toString(); } }
DiagnosticRequest implements Serializable { @Override public String toString() { final StringBuilder sb = new StringBuilder("DiagnosticRequest{"); sb.append("serviceInterface='").append(serviceInterface.getName()).append('\''); sb.append(", methodName='").append(methodName).append('\''); sb.append('}'); return sb.toString(); } DiagnosticRequest(Class<?> serviceInterface, String methodName); @JsonCreator  DiagnosticRequest(@JsonProperty(value = "serviceInterface", required = true) Class<?> serviceInterface,
                           @JsonProperty(value = "methodName", required = true) String methodName,
                           @JsonProperty(value = "arguments") Object... arguments); }
DiagnosticRequest implements Serializable { @Override public String toString() { final StringBuilder sb = new StringBuilder("DiagnosticRequest{"); sb.append("serviceInterface='").append(serviceInterface.getName()).append('\''); sb.append(", methodName='").append(methodName).append('\''); sb.append('}'); return sb.toString(); } DiagnosticRequest(Class<?> serviceInterface, String methodName); @JsonCreator  DiagnosticRequest(@JsonProperty(value = "serviceInterface", required = true) Class<?> serviceInterface,
                           @JsonProperty(value = "methodName", required = true) String methodName,
                           @JsonProperty(value = "arguments") Object... arguments); Class<?> getServiceInterface(); String getMethodName(); @SuppressFBWarnings("EI_EXPOSE_REP") Object[] getArguments(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
DiagnosticRequest implements Serializable { @Override public String toString() { final StringBuilder sb = new StringBuilder("DiagnosticRequest{"); sb.append("serviceInterface='").append(serviceInterface.getName()).append('\''); sb.append(", methodName='").append(methodName).append('\''); sb.append('}'); return sb.toString(); } DiagnosticRequest(Class<?> serviceInterface, String methodName); @JsonCreator  DiagnosticRequest(@JsonProperty(value = "serviceInterface", required = true) Class<?> serviceInterface,
                           @JsonProperty(value = "methodName", required = true) String methodName,
                           @JsonProperty(value = "arguments") Object... arguments); Class<?> getServiceInterface(); String getMethodName(); @SuppressFBWarnings("EI_EXPOSE_REP") Object[] getArguments(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }