Index: trunk/test/unit/org/openstreetmap/josm/data/validation/tests/LongSegmentTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/validation/tests/LongSegmentTest.java	(revision 10080)
+++ trunk/test/unit/org/openstreetmap/josm/data/validation/tests/LongSegmentTest.java	(revision 10081)
@@ -2,5 +2,5 @@
 package org.openstreetmap.josm.data.validation.tests;
 
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 
 import org.junit.Before;
@@ -24,5 +24,5 @@
     }
 
-    private static boolean test(int expected, Way w) throws Exception {
+    private static int test(Way w) throws Exception {
         LongSegment test = new LongSegment();
         test.initialize();
@@ -30,5 +30,5 @@
         test.visit(w);
         test.endTest();
-        return test.getErrors().size() == expected;
+        return test.getErrors().size();
     }
 
@@ -45,9 +45,9 @@
         // https://www.openstreetmap.org/node/468120683
         w.addNode(new Node(new LatLon(54.5737391, 11.9246324)));
-        assertTrue(test(1, w));
+        assertEquals(1, test(w));
 
         // Ferry route
         w.put("route", "ferry");
-        assertTrue(test(0, w));
+        assertEquals(0, test(w));
 
         // Short way
@@ -55,5 +55,5 @@
         w.addNode(new Node(new LatLon(54.152, 12.097)));
         w.addNode(new Node(new LatLon(54.153, 12.098)));
-        assertTrue(test(0, w));
+        assertEquals(0, test(w));
     }
 }
