Changeset 18690 in josm for trunk/test/unit/org/openstreetmap/josm/data/validation/tests/OpeningHourTestTest.java
- Timestamp:
- 2023-03-13T21:59:27+01:00 (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/OpeningHourTestTest.java
r18037 r18690 7 7 import static org.hamcrest.MatcherAssert.assertThat; 8 8 import static org.junit.jupiter.api.Assertions.assertEquals; 9 import static org.junit.jupiter.api.Assertions.assertInstanceOf; 9 10 import static org.junit.jupiter.api.Assertions.assertNotNull; 10 11 import static org.junit.jupiter.api.Assertions.assertTrue; … … 258 259 private static void assertFixEquals(String value, TestError error) { 259 260 assertNotNull(error.getFix(), "fix is not null"); 260 assertTrue(error.getFix() instanceof ChangePropertyCommand, "fix is ChangePropertyCommand"); 261 final ChangePropertyCommand command = (ChangePropertyCommand) error.getFix(); 261 final ChangePropertyCommand command = assertInstanceOf(ChangePropertyCommand.class, error.getFix(), "fix is ChangePropertyCommand"); 262 262 assertEquals(1, command.getTags().size()); 263 263 assertEquals(value, command.getTags().values().iterator().next());
Note:
See TracChangeset
for help on using the changeset viewer.