Ignore:
Timestamp:
2024-09-19T15:38:39+02:00 (8 months ago)
Author:
taylor.smock
Message:

Fix #20908: IllegalStateException: JOSM expected to find primitive in dataset after undoing a Parallel mode action

The test acts (roughly) like a user would, and performs click and drags via a new
utility class (MapModeUtils) which has various methods for performing mouse
actions on the map view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/ExceptionUtilTest.java

    r19226 r19227  
    8787        );
    8888    }
     89
    8990    /**
    9091     * Test of {@link ExceptionUtil#explainBadRequest} method.
     
    9495    @SuppressWarnings("unchecked")
    9596    void testExplainBadRequest(Supplier<String> message, Object exception) {
    96         assertEquals(message.get(), ExceptionUtil.explainBadRequest(exception instanceof Supplier ? ((Supplier<OsmApiException>) exception).get() : (OsmApiException) exception));
     97        assertEquals(message.get(), ExceptionUtil.explainBadRequest(
     98                exception instanceof Supplier ? ((Supplier<OsmApiException>) exception).get() : (OsmApiException) exception
     99        ));
    97100    }
    98101
Note: See TracChangeset for help on using the changeset viewer.