Unverified Commit a3d38d68 authored by User expired's avatar User expired
Browse files

fixed broken equalsVerifier tests

parent 9d9ecfed
Upcoming version:
-----------------
- fixed broken equalsVerifier tests (Nikolaus Krismer)
- merging changes (Nikolaus Krismer)
- externalizing dependency versions (Nikolaus Krismer)
- added city polygons for vienna (Nikolaus Krismer)
......
......@@ -6,6 +6,7 @@ import it.unibz.inf.isochrone.network.Edge;
import it.unibz.inf.isochrone.network.IEdge;
import it.unibz.inf.isochrone.network.IEdge.Mode;
import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.Warning;
public class EqualityTest {
......@@ -18,7 +19,10 @@ public class EqualityTest {
@Test
public void testRouteEntity() {
EqualsVerifier.forClass(RouteEntity.class).usingGetClass().verify();
EqualsVerifier.forClass(RouteEntity.class)
.usingGetClass()
.withIgnoredFields("shortName")
.verify();
}
@Test
......@@ -31,7 +35,11 @@ public class EqualityTest {
final IEdge e1 = new Edge(1, 10, 11, 4.5f, 25.0f, Mode.STREET);
final IEdge e2 = new Edge(2, 11, 10, 4.5f, 25.0f, Mode.STREET);
EqualsVerifier.forClass(UndirectedEdge.class).usingGetClass().withPrefabValues(IEdge.class, e1, e2).verify();
EqualsVerifier.forClass(UndirectedEdge.class)
.usingGetClass()
.suppress(Warning.ALL_FIELDS_SHOULD_BE_USED)
.withPrefabValues(IEdge.class, e1, e2)
.verify();
}
}
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