@Test public void testEquals() { IntegrationBridgeServiceInfo service = new IntegrationBridgeServiceInfo(NEW_VERSION, SERVICE_URL); service.setCurrentVersion(NEW_VERSION); assertEquals(IntegrationBridgeServiceInfo.Compability.OK, service.getCompatibility()); service.setCurrentVersion(NEW_VERSION + SNAPSHOT_SUFFIX); assertEquals(IntegrationBridgeServiceInfo.Compability.NOK, service.getCompatibility()); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } IntegrationBridgeServiceInfo service = (IntegrationBridgeServiceInfo) o; if (connectivity != null ? !connectivity.equals(service.connectivity) : service.connectivity != null) { return false; } if (currentVersion != null ? !currentVersion.equals(service.currentVersion) : service.currentVersion != null) { return false; } return minVersion != null ? minVersion.equals(service.minVersion) : service.minVersion == null; }
IntegrationBridgeServiceInfo { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } IntegrationBridgeServiceInfo service = (IntegrationBridgeServiceInfo) o; if (connectivity != null ? !connectivity.equals(service.connectivity) : service.connectivity != null) { return false; } if (currentVersion != null ? !currentVersion.equals(service.currentVersion) : service.currentVersion != null) { return false; } return minVersion != null ? minVersion.equals(service.minVersion) : service.minVersion == null; } }
IntegrationBridgeServiceInfo { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } IntegrationBridgeServiceInfo service = (IntegrationBridgeServiceInfo) o; if (connectivity != null ? !connectivity.equals(service.connectivity) : service.connectivity != null) { return false; } if (currentVersion != null ? !currentVersion.equals(service.currentVersion) : service.currentVersion != null) { return false; } return minVersion != null ? minVersion.equals(service.minVersion) : service.minVersion == null; } IntegrationBridgeServiceInfo(String minVersion, String url); }
IntegrationBridgeServiceInfo { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } IntegrationBridgeServiceInfo service = (IntegrationBridgeServiceInfo) o; if (connectivity != null ? !connectivity.equals(service.connectivity) : service.connectivity != null) { return false; } if (currentVersion != null ? !currentVersion.equals(service.currentVersion) : service.currentVersion != null) { return false; } return minVersion != null ? minVersion.equals(service.minVersion) : service.minVersion == null; } 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 boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } IntegrationBridgeServiceInfo service = (IntegrationBridgeServiceInfo) o; if (connectivity != null ? !connectivity.equals(service.connectivity) : service.connectivity != null) { return false; } if (currentVersion != null ? !currentVersion.equals(service.currentVersion) : service.currentVersion != null) { return false; } return minVersion != null ? minVersion.equals(service.minVersion) : service.minVersion == null; } 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();  }