@Test public void shouldGetTheDefaultSuccessOutput() { assertEquals("Ok", new ExecuteResult().getOutput()); assertEquals("Ok", new ExecuteResult(true).getOutput()); }
@Transient @JsonProperty("output") public String getOutput() { if (success) { return DEFAULT_SUCCESS_OUTPUT + (message == null ? "" : " (" + message + ")"); } else { return DEFAULT_ERROR_OUTPUT + (message == null ? "" : " (" + message + ")"); } }
ExecuteResult implements Serializable { @Transient @JsonProperty("output") public String getOutput() { if (success) { return DEFAULT_SUCCESS_OUTPUT + (message == null ? "" : " (" + message + ")"); } else { return DEFAULT_ERROR_OUTPUT + (message == null ? "" : " (" + message + ")"); } } }
ExecuteResult implements Serializable { @Transient @JsonProperty("output") public String getOutput() { if (success) { return DEFAULT_SUCCESS_OUTPUT + (message == null ? "" : " (" + message + ")"); } else { return DEFAULT_ERROR_OUTPUT + (message == null ? "" : " (" + message + ")"); } } ExecuteResult();  ExecuteResult(boolean success);  ExecuteResult(boolean success, String message);  ExecuteResult(boolean success, String message, Long time);  ExecuteResult(boolean success, String message, String trace, Long time); }
ExecuteResult implements Serializable { @Transient @JsonProperty("output") public String getOutput() { if (success) { return DEFAULT_SUCCESS_OUTPUT + (message == null ? "" : " (" + message + ")"); } else { return DEFAULT_ERROR_OUTPUT + (message == null ? "" : " (" + message + ")"); } } ExecuteResult();  ExecuteResult(boolean success);  ExecuteResult(boolean success, String message);  ExecuteResult(boolean success, String message, Long time);  ExecuteResult(boolean success, String message, String trace, Long time); void addTrace(Symbol symbol, ExecuteResult result); boolean isSuccess(); void setSuccess(boolean success); String getMessage(); void setMessage(String message); @Transient @JsonProperty("output") String getOutput(); Long getId(); void setId(Long id); Long getTime(); void setTime(Long time); String getTrace(); void setTrace(String trace); void negate(); @Override String toString(); }
ExecuteResult implements Serializable { @Transient @JsonProperty("output") public String getOutput() { if (success) { return DEFAULT_SUCCESS_OUTPUT + (message == null ? "" : " (" + message + ")"); } else { return DEFAULT_ERROR_OUTPUT + (message == null ? "" : " (" + message + ")"); } } ExecuteResult();  ExecuteResult(boolean success);  ExecuteResult(boolean success, String message);  ExecuteResult(boolean success, String message, Long time);  ExecuteResult(boolean success, String message, String trace, Long time); void addTrace(Symbol symbol, ExecuteResult result); boolean isSuccess(); void setSuccess(boolean success); String getMessage(); void setMessage(String message); @Transient @JsonProperty("output") String getOutput(); Long getId(); void setId(Long id); Long getTime(); void setTime(Long time); String getTrace(); void setTrace(String trace); void negate(); @Override String toString(); static final String DEFAULT_SUCCESS_OUTPUT; static final String DEFAULT_ERROR_OUTPUT; }