@Test public void testToString() { IntegrationBridgeServiceInfo service = new IntegrationBridgeServiceInfo(NEW_VERSION, SERVICE_URL); service.setCurrentVersion(NEW_VERSION); String expected = "IntegrationBridgeServiceInfo{" + "connectivity=" + service.getConnectivity() + ", currentVersion='" + service.getCurrentVersion() + '\'' + ", minVersion='" + service.getMinVersion() + '\'' + '}'; assertEquals(expected, service.toString()); }
@Override public String toString() { return "IntegrationBridgeServiceInfo{" + "connectivity=" + connectivity + ", currentVersion='" + currentVersion + '\'' + ", minVersion='" + minVersion + '\'' + '}'; }
IntegrationBridgeServiceInfo { @Override public String toString() { return "IntegrationBridgeServiceInfo{" + "connectivity=" + connectivity + ", currentVersion='" + currentVersion + '\'' + ", minVersion='" + minVersion + '\'' + '}'; } }
IntegrationBridgeServiceInfo { @Override public String toString() { return "IntegrationBridgeServiceInfo{" + "connectivity=" + connectivity + ", currentVersion='" + currentVersion + '\'' + ", minVersion='" + minVersion + '\'' + '}'; } IntegrationBridgeServiceInfo(String minVersion, String url); }
IntegrationBridgeServiceInfo { @Override public String toString() { return "IntegrationBridgeServiceInfo{" + "connectivity=" + connectivity + ", currentVersion='" + currentVersion + '\'' + ", minVersion='" + minVersion + '\'' + '}'; } IntegrationBridgeServiceInfo(String minVersion, String url); String getConnectivity(); void setConnectivity(Status connectivity); String getCurrentVersion(); void setCurrentVersion(String currentVersion); String getMinVersion(); Compability getCompatibility(); String getUrl(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
IntegrationBridgeServiceInfo { @Override public String toString() { return "IntegrationBridgeServiceInfo{" + "connectivity=" + connectivity + ", currentVersion='" + currentVersion + '\'' + ", minVersion='" + minVersion + '\'' + '}'; } IntegrationBridgeServiceInfo(String minVersion, String url); String getConnectivity(); void setConnectivity(Status connectivity); String getCurrentVersion(); void setCurrentVersion(String currentVersion); String getMinVersion(); Compability getCompatibility(); String getUrl(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }