Commit c60473e0 by Johannes Edmeier Committed by Johannes Edmeier

Update to Java 8

parent 15cf8071
......@@ -16,7 +16,7 @@
<description>Spring Boot Admin</description>
<url>https://github.com/codecentric/spring-boot-admin/</url>
<properties>
<java.version>1.7</java.version>
<java.version>1.8</java.version>
<main.basedir>${basedir}</main.basedir>
<spring-boot.version>1.5.4.RELEASE</spring-boot.version>
<spring-cloud.version>Dalston.SR1</spring-cloud.version>
......
package de.codecentric.boot.admin.registration;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import java.io.IOException;
......@@ -41,13 +39,13 @@ public class ApplicationTest {
Application a2 = Application.create("foo").withHealthUrl("healthUrl")
.withManagementUrl("mgmt").withServiceUrl("svc").build();
assertThat(a1, is(a2));
assertThat(a1.hashCode(), is(a2.hashCode()));
assertThat(a1).isEqualTo(a2);
assertThat(a1.hashCode()).isEqualTo(a2.hashCode());
Application a3 = Application.create("foo").withHealthUrl("healthUrl2")
.withManagementUrl("mgmt").withServiceUrl("svc").build();
assertThat(a1, not(is(a3)));
assertThat(a2, not(is(a3)));
assertThat(a1).isNotEqualTo(a3);
assertThat(a2).isNotEqualTo(a3);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment