@Test public void testToString() throws Exception { final StatusMessage statusMessage = new StatusMessage(ServerIdentity.getInstance()); final String jsonExpected = JsonHandler.writeAsString(statusMessage); assertEquals(jsonExpected, statusMessage.toString()); }
@Override public String toString() { try { return JsonHandler.writeAsString(this); } catch (final InvalidParseOperationException e) { LOGGER.warn(e); return "unknownStatusMessage"; } }
StatusMessage { @Override public String toString() { try { return JsonHandler.writeAsString(this); } catch (final InvalidParseOperationException e) { LOGGER.warn(e); return "unknownStatusMessage"; } } }
StatusMessage { @Override public String toString() { try { return JsonHandler.writeAsString(this); } catch (final InvalidParseOperationException e) { LOGGER.warn(e); return "unknownStatusMessage"; } } StatusMessage();  StatusMessage(ServerIdentityInterface serverIdentity); }
StatusMessage { @Override public String toString() { try { return JsonHandler.writeAsString(this); } catch (final InvalidParseOperationException e) { LOGGER.warn(e); return "unknownStatusMessage"; } } StatusMessage();  StatusMessage(ServerIdentityInterface serverIdentity); final String getName(); final String getRole(); final int getPid(); @Override String toString(); }
StatusMessage { @Override public String toString() { try { return JsonHandler.writeAsString(this); } catch (final InvalidParseOperationException e) { LOGGER.warn(e); return "unknownStatusMessage"; } } StatusMessage();  StatusMessage(ServerIdentityInterface serverIdentity); final String getName(); final String getRole(); final int getPid(); @Override String toString();  }