Changeset 13079 in josm for trunk/test
- Timestamp:
- 2017-11-04T20:27:56+01:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 56 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/TestUtils.java
r13078 r13079 21 21 import java.util.stream.Stream; 22 22 23 import org.junit.Assume; 23 24 import org.openstreetmap.josm.command.Command; 24 25 import org.openstreetmap.josm.data.osm.DataSet; … … 329 330 } 330 331 } 332 333 /** 334 * Use to assume that EqualsVerifier is working with the current JVM. 335 */ 336 public static void assumeWorkingEqualsVerifier() { 337 try { 338 // Workaround to https://github.com/jqno/equalsverifier/issues/177 339 // Inspired by https://issues.apache.org/jira/browse/SOLR-11606 340 nl.jqno.equalsverifier.internal.lib.bytebuddy.ClassFileVersion.ofThisVm(); 341 } catch (IllegalArgumentException e) { 342 Assume.assumeNoException(e); 343 } 344 } 331 345 } -
trunk/test/unit/org/openstreetmap/josm/actions/CombineWayActionTest.java
r12463 r13079 64 64 @Test 65 65 public void testEqualsContract() { 66 TestUtils.assumeWorkingEqualsVerifier(); 66 67 EqualsVerifier.forClass(NodePair.class).usingGetClass() 67 68 .suppress(Warning.ANNOTATION) // FIXME: remove it after https://github.com/jqno/equalsverifier/issues/152 is fixed -
trunk/test/unit/org/openstreetmap/josm/actions/ExtensionFileFilterTest.java
r11978 r13079 45 45 @Test 46 46 public void testEqualsContract() { 47 TestUtils.assumeWorkingEqualsVerifier(); 47 48 EqualsVerifier.forClass(ExtensionFileFilter.class).usingGetClass() 48 49 .suppress(Warning.ANNOTATION) // FIXME: remove it after https://github.com/jqno/equalsverifier/issues/152 is fixed -
trunk/test/unit/org/openstreetmap/josm/command/AddCommandTest.java
r12726 r13079 9 9 import org.junit.Rule; 10 10 import org.junit.Test; 11 import org.openstreetmap.josm.TestUtils; 11 12 import org.openstreetmap.josm.data.coor.LatLon; 12 13 import org.openstreetmap.josm.data.osm.DataSet; … … 131 132 @Test 132 133 public void testEqualsContract() { 134 TestUtils.assumeWorkingEqualsVerifier(); 133 135 EqualsVerifier.forClass(AddCommand.class).usingGetClass() 134 136 .withPrefabValues(OsmPrimitive.class, -
trunk/test/unit/org/openstreetmap/josm/command/AddPrimitivesCommandTest.java
r12726 r13079 14 14 import org.junit.Rule; 15 15 import org.junit.Test; 16 import org.openstreetmap.josm.TestUtils; 16 17 import org.openstreetmap.josm.data.coor.LatLon; 17 18 import org.openstreetmap.josm.data.osm.DataSet; … … 285 286 @Test 286 287 public void testEqualsContract() { 288 TestUtils.assumeWorkingEqualsVerifier(); 287 289 EqualsVerifier.forClass(AddPrimitivesCommand.class).usingGetClass() 288 290 .withPrefabValues(DataSet.class, -
trunk/test/unit/org/openstreetmap/josm/command/ChangeCommandTest.java
r12726 r13079 14 14 import org.junit.Rule; 15 15 import org.junit.Test; 16 import org.openstreetmap.josm.TestUtils; 16 17 import org.openstreetmap.josm.command.CommandTest.CommandTestData; 17 18 import org.openstreetmap.josm.data.coor.LatLon; … … 154 155 @Test 155 156 public void testEqualsContract() { 157 TestUtils.assumeWorkingEqualsVerifier(); 156 158 EqualsVerifier.forClass(ChangeCommand.class).usingGetClass() 157 159 .withPrefabValues(DataSet.class, -
trunk/test/unit/org/openstreetmap/josm/command/ChangeNodesCommandTest.java
r12726 r13079 15 15 import org.junit.Rule; 16 16 import org.junit.Test; 17 import org.openstreetmap.josm.TestUtils; 17 18 import org.openstreetmap.josm.command.CommandTest.CommandTestData; 18 19 import org.openstreetmap.josm.data.coor.LatLon; … … 125 126 @Test 126 127 public void testEqualsContract() { 128 TestUtils.assumeWorkingEqualsVerifier(); 127 129 EqualsVerifier.forClass(ChangeNodesCommand.class).usingGetClass() 128 130 .withPrefabValues(Way.class, -
trunk/test/unit/org/openstreetmap/josm/command/ChangePropertyCommandTest.java
r12726 r13079 17 17 import org.junit.Rule; 18 18 import org.junit.Test; 19 import org.openstreetmap.josm.TestUtils; 19 20 import org.openstreetmap.josm.command.CommandTest.CommandTestData; 20 21 import org.openstreetmap.josm.data.osm.DataSet; … … 278 279 @Test 279 280 public void testEqualsContract() { 281 TestUtils.assumeWorkingEqualsVerifier(); 280 282 EqualsVerifier.forClass(ChangePropertyCommand.class).usingGetClass() 281 283 .withPrefabValues(DataSet.class, -
trunk/test/unit/org/openstreetmap/josm/command/ChangePropertyKeyCommandTest.java
r10758 r13079 14 14 import org.junit.Rule; 15 15 import org.junit.Test; 16 import org.openstreetmap.josm.TestUtils; 16 17 import org.openstreetmap.josm.command.CommandTest.CommandTestData; 17 18 import org.openstreetmap.josm.data.osm.DataSet; … … 149 150 @Test 150 151 public void testEqualsContract() { 152 TestUtils.assumeWorkingEqualsVerifier(); 151 153 EqualsVerifier.forClass(ChangePropertyKeyCommand.class).usingGetClass() 152 154 .withPrefabValues(DataSet.class, -
trunk/test/unit/org/openstreetmap/josm/command/ChangeRelationMemberRoleCommandTest.java
r10758 r13079 13 13 import org.junit.Rule; 14 14 import org.junit.Test; 15 import org.openstreetmap.josm.TestUtils; 15 16 import org.openstreetmap.josm.command.CommandTest.CommandTestDataWithRelation; 16 17 import org.openstreetmap.josm.data.osm.DataSet; … … 146 147 @Test 147 148 public void testEqualsContract() { 149 TestUtils.assumeWorkingEqualsVerifier(); 148 150 EqualsVerifier.forClass(ChangeRelationMemberRoleCommand.class).usingGetClass() 149 151 .withPrefabValues(Relation.class, -
trunk/test/unit/org/openstreetmap/josm/command/CommandTest.java
r12726 r13079 6 6 import org.junit.Rule; 7 7 import org.junit.Test; 8 import org.openstreetmap.josm.TestUtils; 8 9 import org.openstreetmap.josm.data.coor.LatLon; 9 10 import org.openstreetmap.josm.data.osm.DataSet; … … 38 39 @Test 39 40 public void testEqualsContract() { 41 TestUtils.assumeWorkingEqualsVerifier(); 40 42 EqualsVerifier.forClass(Command.class).usingGetClass() 41 43 .withPrefabValues(DataSet.class, -
trunk/test/unit/org/openstreetmap/josm/command/DeleteCommandTest.java
r12727 r13079 16 16 import org.junit.Rule; 17 17 import org.junit.Test; 18 import org.openstreetmap.josm.TestUtils; 18 19 import org.openstreetmap.josm.command.CommandTest.CommandTestDataWithRelation; 19 20 import org.openstreetmap.josm.data.osm.DataSet; … … 378 379 @Test 379 380 public void testEqualsContract() { 381 TestUtils.assumeWorkingEqualsVerifier(); 380 382 EqualsVerifier.forClass(DeleteCommand.class).usingGetClass() 381 383 .withPrefabValues(DataSet.class, -
trunk/test/unit/org/openstreetmap/josm/command/MoveCommandTest.java
r12726 r13079 16 16 import org.junit.Test; 17 17 import org.openstreetmap.josm.Main; 18 import org.openstreetmap.josm.TestUtils; 18 19 import org.openstreetmap.josm.command.CommandTest.CommandTestDataWithRelation; 19 20 import org.openstreetmap.josm.data.coor.EastNorth; … … 260 261 @Test 261 262 public void testEqualsContract() { 263 TestUtils.assumeWorkingEqualsVerifier(); 262 264 EqualsVerifier.forClass(MoveCommand.class).usingGetClass() 263 265 .withPrefabValues(LatLon.class, -
trunk/test/unit/org/openstreetmap/josm/command/PurgeCommandTest.java
r12727 r13079 16 16 import org.junit.Rule; 17 17 import org.junit.Test; 18 import org.openstreetmap.josm.TestUtils; 18 19 import org.openstreetmap.josm.command.CommandTest.CommandTestDataWithRelation; 19 20 import org.openstreetmap.josm.data.conflict.Conflict; … … 145 146 @Test 146 147 public void testEqualsContract() { 148 TestUtils.assumeWorkingEqualsVerifier(); 147 149 EqualsVerifier.forClass(PurgeCommand.class).usingGetClass() 148 150 .withPrefabValues(DataSet.class, -
trunk/test/unit/org/openstreetmap/josm/command/RemoveNodesCommandTest.java
r10758 r13079 12 12 import org.junit.Rule; 13 13 import org.junit.Test; 14 import org.openstreetmap.josm.TestUtils; 14 15 import org.openstreetmap.josm.command.CommandTest.CommandTestDataWithRelation; 15 16 import org.openstreetmap.josm.data.osm.DataSet; … … 123 124 @Test 124 125 public void testEqualsContract() { 126 TestUtils.assumeWorkingEqualsVerifier(); 125 127 EqualsVerifier.forClass(RemoveNodesCommand.class).usingGetClass() 126 128 .withPrefabValues(Way.class, -
trunk/test/unit/org/openstreetmap/josm/command/RotateCommandTest.java
r12726 r13079 11 11 import org.junit.Rule; 12 12 import org.junit.Test; 13 import org.openstreetmap.josm.TestUtils; 13 14 import org.openstreetmap.josm.command.CommandTest.CommandTestData; 14 15 import org.openstreetmap.josm.data.coor.EastNorth; … … 136 137 @Test 137 138 public void testEqualsContract() { 139 TestUtils.assumeWorkingEqualsVerifier(); 138 140 EqualsVerifier.forClass(RotateCommand.class).usingGetClass() 139 141 .withPrefabValues(LatLon.class, LatLon.ZERO, new LatLon(45, 45)) -
trunk/test/unit/org/openstreetmap/josm/command/ScaleCommandTest.java
r12726 r13079 11 11 import org.junit.Rule; 12 12 import org.junit.Test; 13 import org.openstreetmap.josm.TestUtils; 13 14 import org.openstreetmap.josm.command.CommandTest.CommandTestData; 14 15 import org.openstreetmap.josm.data.coor.EastNorth; … … 136 137 @Test 137 138 public void testEqualsContract() { 139 TestUtils.assumeWorkingEqualsVerifier(); 138 140 EqualsVerifier.forClass(ScaleCommand.class).usingGetClass() 139 141 .withPrefabValues(LatLon.class, -
trunk/test/unit/org/openstreetmap/josm/command/SelectCommandTest.java
r12726 r13079 13 13 import org.junit.Rule; 14 14 import org.junit.Test; 15 import org.openstreetmap.josm.TestUtils; 15 16 import org.openstreetmap.josm.command.CommandTest.CommandTestDataWithRelation; 16 17 import org.openstreetmap.josm.data.osm.DataSet; … … 149 150 @Test 150 151 public void testEqualsContract() { 152 TestUtils.assumeWorkingEqualsVerifier(); 151 153 EqualsVerifier.forClass(SelectCommand.class).usingGetClass() 152 154 .withPrefabValues(DataSet.class, -
trunk/test/unit/org/openstreetmap/josm/command/SequenceCommandTest.java
r12726 r13079 17 17 import org.junit.Rule; 18 18 import org.junit.Test; 19 import org.openstreetmap.josm.TestUtils; 19 20 import org.openstreetmap.josm.command.CommandTest.CommandTestDataWithRelation; 20 21 import org.openstreetmap.josm.data.osm.DataSet; … … 214 215 public void testEqualsContract() { 215 216 DataSet ds = new DataSet(); 217 TestUtils.assumeWorkingEqualsVerifier(); 216 218 EqualsVerifier.forClass(SequenceCommand.class).usingGetClass() 217 219 .withPrefabValues(Command.class, -
trunk/test/unit/org/openstreetmap/josm/command/TransformNodesCommandTest.java
r10945 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.data.coor.LatLon; 7 8 import org.openstreetmap.josm.data.osm.DataSet; … … 31 32 @Test 32 33 public void testEqualsContract() { 34 TestUtils.assumeWorkingEqualsVerifier(); 33 35 EqualsVerifier.forClass(TransformNodesCommand.class).usingGetClass() 34 36 .withPrefabValues(LatLon.class, -
trunk/test/unit/org/openstreetmap/josm/command/conflict/ConflictAddCommandTest.java
r12726 r13079 9 9 import org.junit.Rule; 10 10 import org.junit.Test; 11 import org.openstreetmap.josm.TestUtils; 11 12 import org.openstreetmap.josm.command.CommandTest.CommandTestData; 12 13 import org.openstreetmap.josm.data.conflict.Conflict; … … 73 74 @Test 74 75 public void testEqualsContract() { 76 TestUtils.assumeWorkingEqualsVerifier(); 75 77 EqualsVerifier.forClass(ConflictAddCommand.class).usingGetClass() 76 78 .withPrefabValues(DataSet.class, -
trunk/test/unit/org/openstreetmap/josm/command/conflict/ConflictResolveCommandTest.java
r10945 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.data.conflict.Conflict; 7 8 import org.openstreetmap.josm.data.osm.DataSet; … … 32 33 @Test 33 34 public void testEqualsContract() { 35 TestUtils.assumeWorkingEqualsVerifier(); 34 36 EqualsVerifier.forClass(ConflictResolveCommand.class).usingGetClass() 35 37 .withPrefabValues(Conflict.class, -
trunk/test/unit/org/openstreetmap/josm/command/conflict/CoordinateConflictResolveCommandTest.java
r12726 r13079 9 9 import org.junit.Rule; 10 10 import org.junit.Test; 11 import org.openstreetmap.josm.TestUtils; 11 12 import org.openstreetmap.josm.command.CommandTest.CommandTestData; 12 13 import org.openstreetmap.josm.data.conflict.Conflict; … … 90 91 @Test 91 92 public void testEqualsContract() { 93 TestUtils.assumeWorkingEqualsVerifier(); 92 94 EqualsVerifier.forClass(CoordinateConflictResolveCommand.class).usingGetClass() 93 95 .withPrefabValues(Conflict.class, -
trunk/test/unit/org/openstreetmap/josm/command/conflict/DeletedStateConflictResolveCommandTest.java
r10945 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.data.conflict.Conflict; 7 8 import org.openstreetmap.josm.data.osm.DataSet; … … 33 34 @Test 34 35 public void testEqualsContract() { 36 TestUtils.assumeWorkingEqualsVerifier(); 35 37 EqualsVerifier.forClass(DeletedStateConflictResolveCommand.class).usingGetClass() 36 38 .withPrefabValues(Conflict.class, -
trunk/test/unit/org/openstreetmap/josm/command/conflict/ModifiedConflictResolveCommandTest.java
r10945 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.data.conflict.Conflict; 7 8 import org.openstreetmap.josm.data.osm.DataSet; … … 33 34 @Test 34 35 public void testEqualsContract() { 36 TestUtils.assumeWorkingEqualsVerifier(); 35 37 EqualsVerifier.forClass(ModifiedConflictResolveCommand.class).usingGetClass() 36 38 .withPrefabValues(Conflict.class, -
trunk/test/unit/org/openstreetmap/josm/command/conflict/RelationMemberConflictResolverCommandTest.java
r10945 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.data.conflict.Conflict; 7 8 import org.openstreetmap.josm.data.osm.DataSet; … … 33 34 @Test 34 35 public void testEqualsContract() { 36 TestUtils.assumeWorkingEqualsVerifier(); 35 37 EqualsVerifier.forClass(RelationMemberConflictResolverCommand.class).usingGetClass() 36 38 .withPrefabValues(Relation.class, -
trunk/test/unit/org/openstreetmap/josm/command/conflict/TagConflictResolveCommandTest.java
r10945 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.data.conflict.Conflict; 7 8 import org.openstreetmap.josm.data.osm.DataSet; … … 33 34 @Test 34 35 public void testEqualsContract() { 36 TestUtils.assumeWorkingEqualsVerifier(); 35 37 EqualsVerifier.forClass(TagConflictResolveCommand.class).usingGetClass() 36 38 .withPrefabValues(Conflict.class, -
trunk/test/unit/org/openstreetmap/josm/command/conflict/VersionConflictResolveCommandTest.java
r10945 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.data.conflict.Conflict; 7 8 import org.openstreetmap.josm.data.osm.DataSet; … … 33 34 @Test 34 35 public void testEqualsContract() { 36 TestUtils.assumeWorkingEqualsVerifier(); 35 37 EqualsVerifier.forClass(VersionConflictResolveCommand.class).usingGetClass() 36 38 .withPrefabValues(Conflict.class, -
trunk/test/unit/org/openstreetmap/josm/command/conflict/WayNodesConflictResolverCommandTest.java
r10945 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.data.conflict.Conflict; 7 8 import org.openstreetmap.josm.data.osm.DataSet; … … 33 34 @Test 34 35 public void testEqualsContract() { 36 TestUtils.assumeWorkingEqualsVerifier(); 35 37 EqualsVerifier.forClass(WayNodesConflictResolverCommand.class).usingGetClass() 36 38 .withPrefabValues(Conflict.class, -
trunk/test/unit/org/openstreetmap/josm/data/coor/CachedLatLonTest.java
r10945 r13079 6 6 import org.junit.Rule; 7 7 import org.junit.Test; 8 import org.openstreetmap.josm.TestUtils; 8 9 import org.openstreetmap.josm.testutils.JOSMTestRules; 9 10 … … 29 30 @Test 30 31 public void testEqualsContract() { 32 TestUtils.assumeWorkingEqualsVerifier(); 31 33 EqualsVerifier.forClass(CachedLatLon.class).usingGetClass() 32 34 .suppress(Warning.NONFINAL_FIELDS) -
trunk/test/unit/org/openstreetmap/josm/data/coor/LatLonTest.java
r12795 r13079 10 10 import org.junit.Rule; 11 11 import org.junit.Test; 12 import org.openstreetmap.josm.TestUtils; 12 13 import org.openstreetmap.josm.data.Bounds; 13 14 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 146 147 @Test 147 148 public void testEqualsContract() { 149 TestUtils.assumeWorkingEqualsVerifier(); 148 150 EqualsVerifier.forClass(LatLon.class).usingGetClass() 149 151 .withPrefabValues(DecimalFormat.class, new DecimalFormat("00.0"), new DecimalFormat("00.000")) -
trunk/test/unit/org/openstreetmap/josm/data/correction/TagCorrectionTest.java
r11085 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.testutils.JOSMTestRules; 7 8 … … 26 27 @Test 27 28 public void testEqualsContract() { 29 TestUtils.assumeWorkingEqualsVerifier(); 28 30 EqualsVerifier.forClass(TagCorrection.class).usingGetClass().verify(); 29 31 } -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java
r12729 r13079 20 20 import org.junit.Test; 21 21 import org.openstreetmap.josm.Main; 22 import org.openstreetmap.josm.TestUtils; 22 23 import org.openstreetmap.josm.data.Bounds; 23 24 import org.openstreetmap.josm.data.DataSource; … … 445 446 @Test 446 447 public void testEqualsContract() { 448 TestUtils.assumeWorkingEqualsVerifier(); 447 449 EqualsVerifier.forClass(GpxData.class).usingGetClass() 448 450 .withIgnoredFields("attr", "creator", "fromServer", "storageFile", "listeners", "tracks", "routes", "waypoints", "proxy") -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxRouteTest.java
r10906 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.data.coor.LatLon; 7 8 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 28 29 @Test 29 30 public void testEqualsContract() { 31 TestUtils.assumeWorkingEqualsVerifier(); 30 32 EqualsVerifier.forClass(GpxRoute.class).usingGetClass() 31 33 .suppress(Warning.NONFINAL_FIELDS) -
trunk/test/unit/org/openstreetmap/josm/data/gpx/ImmutableGpxTrackSegmentTest.java
r10906 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.data.coor.LatLon; 7 8 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 27 28 @Test 28 29 public void testEqualsContract() { 30 TestUtils.assumeWorkingEqualsVerifier(); 29 31 EqualsVerifier.forClass(ImmutableGpxTrackSegment.class).usingGetClass() 30 32 .withIgnoredFields("bounds", "length") -
trunk/test/unit/org/openstreetmap/josm/data/gpx/ImmutableGpxTrackTest.java
r10906 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.testutils.JOSMTestRules; 7 8 … … 27 28 @Test 28 29 public void testEqualsContract() { 30 TestUtils.assumeWorkingEqualsVerifier(); 29 31 EqualsVerifier.forClass(ImmutableGpxTrack.class).usingGetClass() 30 32 .suppress(Warning.NONFINAL_FIELDS) -
trunk/test/unit/org/openstreetmap/josm/data/gpx/WayPointTest.java
r12197 r13079 6 6 import org.junit.Rule; 7 7 import org.junit.Test; 8 import org.openstreetmap.josm.TestUtils; 8 9 import org.openstreetmap.josm.testutils.JOSMTestRules; 9 10 … … 29 30 @Test 30 31 public void testEqualsContract() { 32 TestUtils.assumeWorkingEqualsVerifier(); 31 33 EqualsVerifier.forClass(WayPoint.class).usingGetClass() 32 34 .suppress(Warning.NONFINAL_FIELDS) -
trunk/test/unit/org/openstreetmap/josm/data/gpx/WithAttributesTest.java
r10906 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.testutils.JOSMTestRules; 7 8 … … 27 28 @Test 28 29 public void testEqualsContract() { 30 TestUtils.assumeWorkingEqualsVerifier(); 29 31 EqualsVerifier.forClass(WithAttributes.class).usingGetClass() 30 32 .suppress(Warning.NONFINAL_FIELDS) -
trunk/test/unit/org/openstreetmap/josm/data/notes/NoteTest.java
r10945 r13079 9 9 import org.junit.Rule; 10 10 import org.junit.Test; 11 import org.openstreetmap.josm.TestUtils; 11 12 import org.openstreetmap.josm.data.coor.LatLon; 12 13 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 58 59 @Test 59 60 public void testEqualsContract() { 61 TestUtils.assumeWorkingEqualsVerifier(); 60 62 EqualsVerifier.forClass(Note.class).usingGetClass() 61 63 .withIgnoredFields("latLon", "createdAt", "closedAt", "state", "comments") -
trunk/test/unit/org/openstreetmap/josm/data/oauth/OAuthParametersTest.java
r12935 r13079 9 9 import org.junit.Test; 10 10 import org.openstreetmap.josm.Main; 11 import org.openstreetmap.josm.TestUtils; 11 12 import org.openstreetmap.josm.io.OsmApi; 12 13 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 61 62 @Test 62 63 public void testEqualsContract() { 64 TestUtils.assumeWorkingEqualsVerifier(); 63 65 EqualsVerifier.forClass(OAuthParameters.class).usingGetClass().verify(); 64 66 } -
trunk/test/unit/org/openstreetmap/josm/data/oauth/OAuthTokenTest.java
r10758 r13079 6 6 7 7 import org.junit.Test; 8 import org.openstreetmap.josm.TestUtils; 8 9 9 10 import nl.jqno.equalsverifier.EqualsVerifier; … … 34 35 @Test 35 36 public void testEqualsContract() { 37 TestUtils.assumeWorkingEqualsVerifier(); 36 38 EqualsVerifier.forClass(OAuthToken.class).usingGetClass().verify(); 37 39 } -
trunk/test/unit/org/openstreetmap/josm/data/osm/BBoxTest.java
r12029 r13079 8 8 import org.junit.Rule; 9 9 import org.junit.Test; 10 import org.openstreetmap.josm.TestUtils; 10 11 import org.openstreetmap.josm.data.coor.LatLon; 11 12 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 32 33 @Test 33 34 public void testEqualsContract() { 35 TestUtils.assumeWorkingEqualsVerifier(); 34 36 EqualsVerifier.forClass(BBox.class).usingGetClass() 35 37 .suppress(Warning.NONFINAL_FIELDS) -
trunk/test/unit/org/openstreetmap/josm/data/osm/FilterTest.java
r12659 r13079 16 16 import org.junit.Rule; 17 17 import org.junit.Test; 18 import org.openstreetmap.josm.TestUtils; 18 19 import org.openstreetmap.josm.data.coor.LatLon; 19 20 import org.openstreetmap.josm.data.osm.Filter.FilterPreferenceEntry; … … 242 243 @Test 243 244 public void testEqualsContract() { 245 TestUtils.assumeWorkingEqualsVerifier(); 244 246 EqualsVerifier.forClass(FilterPreferenceEntry.class).usingGetClass() 245 247 .suppress(Warning.NONFINAL_FIELDS) -
trunk/test/unit/org/openstreetmap/josm/data/osm/StorageTest.java
r11392 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.testutils.JOSMTestRules; 7 8 … … 27 28 @Test 28 29 public void testEqualsContract() { 30 TestUtils.assumeWorkingEqualsVerifier(); 29 31 EqualsVerifier.forClass(Storage.class).usingGetClass() 30 32 .suppress(Warning.NONFINAL_FIELDS) -
trunk/test/unit/org/openstreetmap/josm/data/tagging/ac/AutoCompletionPriorityTest.java
r12859 r13079 14 14 import org.junit.Rule; 15 15 import org.junit.Test; 16 import org.openstreetmap.josm.TestUtils; 16 17 import org.openstreetmap.josm.testutils.JOSMTestRules; 17 18 … … 96 97 @Test 97 98 public void testEqualsContract() { 99 TestUtils.assumeWorkingEqualsVerifier(); 98 100 EqualsVerifier.forClass(AutoCompletionPriority.class).usingGetClass() 99 101 .verify(); -
trunk/test/unit/org/openstreetmap/josm/gui/MapStatusTest.java
r11085 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.testutils.JOSMTestRules; 7 8 … … 26 27 @Test 27 28 public void testEqualsContract() { 29 TestUtils.assumeWorkingEqualsVerifier(); 28 30 EqualsVerifier.forClass(MapStatus.StatusTextHistory.class).withIgnoredFields("text").verify(); 29 31 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/advanced/PrefEntryTest.java
r12884 r13079 9 9 import org.junit.Test; 10 10 import org.openstreetmap.josm.JOSMFixture; 11 import org.openstreetmap.josm.TestUtils; 11 12 import org.openstreetmap.josm.spi.preferences.StringSetting; 12 13 … … 55 56 @Test 56 57 public void testEqualsContract() { 58 TestUtils.assumeWorkingEqualsVerifier(); 57 59 EqualsVerifier.forClass(PrefEntry.class).usingGetClass() 58 60 .withIgnoredFields("value", "defaultValue", "isDefault", "changed") -
trunk/test/unit/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionManagerTest.java
r11974 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager.UserInputTag; 7 8 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 27 28 @Test 28 29 public void testEqualsContract() { 30 TestUtils.assumeWorkingEqualsVerifier(); 29 31 EqualsVerifier.forClass(UserInputTag.class).usingGetClass() 30 32 .verify(); -
trunk/test/unit/org/openstreetmap/josm/gui/util/WindowGeometryTest.java
r12849 r13079 16 16 import org.junit.Rule; 17 17 import org.junit.Test; 18 import org.openstreetmap.josm.TestUtils; 18 19 import org.openstreetmap.josm.gui.util.WindowGeometry.WindowGeometryException; 19 20 import org.openstreetmap.josm.spi.preferences.Config; … … 147 148 @Test 148 149 public void testEqualsContract() { 150 TestUtils.assumeWorkingEqualsVerifier(); 149 151 EqualsVerifier.forClass(WindowGeometry.class).usingGetClass() 150 152 .suppress(Warning.NONFINAL_FIELDS) -
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTest.java
r12754 r13079 14 14 import org.junit.Test; 15 15 import org.openstreetmap.josm.Main; 16 import org.openstreetmap.josm.TestUtils; 16 17 import org.openstreetmap.josm.gui.preferences.plugin.PluginPreferenceTest; 17 18 import org.openstreetmap.josm.plugins.PluginHandler.DeprecatedPlugin; … … 40 41 @Test 41 42 public void testEqualsContract() { 43 TestUtils.assumeWorkingEqualsVerifier(); 42 44 EqualsVerifier.forClass(DeprecatedPlugin.class).usingGetClass().verify(); 43 45 } -
trunk/test/unit/org/openstreetmap/josm/spi/preferences/ListListSettingTest.java
r12884 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.testutils.JOSMTestRules; 7 8 … … 25 26 @Test 26 27 public void testEqualsContract() { 28 TestUtils.assumeWorkingEqualsVerifier(); 27 29 EqualsVerifier.forClass(ListListSetting.class).usingGetClass() 28 30 .withIgnoredFields("isNew", "time") -
trunk/test/unit/org/openstreetmap/josm/spi/preferences/ListSettingTest.java
r12884 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.testutils.JOSMTestRules; 7 8 … … 25 26 @Test 26 27 public void testEqualsContract() { 28 TestUtils.assumeWorkingEqualsVerifier(); 27 29 EqualsVerifier.forClass(ListSetting.class).usingGetClass() 28 30 .withIgnoredFields("isNew", "time") -
trunk/test/unit/org/openstreetmap/josm/spi/preferences/MapListSettingTest.java
r12884 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.testutils.JOSMTestRules; 7 8 … … 25 26 @Test 26 27 public void testEqualsContract() { 28 TestUtils.assumeWorkingEqualsVerifier(); 27 29 EqualsVerifier.forClass(MapListSetting.class).usingGetClass() 28 30 .withIgnoredFields("isNew", "time") -
trunk/test/unit/org/openstreetmap/josm/spi/preferences/StringSettingTest.java
r12884 r13079 4 4 import org.junit.Rule; 5 5 import org.junit.Test; 6 import org.openstreetmap.josm.TestUtils; 6 7 import org.openstreetmap.josm.testutils.JOSMTestRules; 7 8 … … 25 26 @Test 26 27 public void testEqualsContract() { 28 TestUtils.assumeWorkingEqualsVerifier(); 27 29 EqualsVerifier.forClass(StringSetting.class).usingGetClass() 28 30 .withIgnoredFields("isNew", "time") -
trunk/test/unit/org/openstreetmap/josm/tools/MultiMapTest.java
r10758 r13079 8 8 import java.util.HashSet; 9 9 10 import org.junit.Test; 11 import org.openstreetmap.josm.TestUtils; 12 10 13 import nl.jqno.equalsverifier.EqualsVerifier; 11 import org.junit.Test;12 14 13 15 /** … … 21 23 @Test 22 24 public void testEqualsContract() { 25 TestUtils.assumeWorkingEqualsVerifier(); 23 26 EqualsVerifier.forClass(MultiMap.class).usingGetClass().verify(); 24 27 } -
trunk/test/unit/org/openstreetmap/josm/tools/PairTest.java
r10758 r13079 3 3 4 4 import org.junit.Test; 5 import org.openstreetmap.josm.TestUtils; 5 6 6 7 import nl.jqno.equalsverifier.EqualsVerifier; … … 17 18 @Test 18 19 public void testEqualsContract() { 20 TestUtils.assumeWorkingEqualsVerifier(); 19 21 EqualsVerifier.forClass(Pair.class).suppress(Warning.NONFINAL_FIELDS).verify(); 20 22 }
Note:
See TracChangeset
for help on using the changeset viewer.