Changeset 19262 in josm


Ignore:
Timestamp:
2024-11-25T23:17:46+01:00 (4 days ago)
Author:
taylor.smock
Message:

pmd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/items/TextTest.java

    r19261 r19262  
    5454    @ValueSource(strings = {"\n\n\n\t\r {0}\n\n\n", "{0}"})
    5555    void testNonRegression24023(String inscription) {
    56         // There is a bit of "extra" whitespace in the string (` \n`). It is somewhat deliberate. We probably ought to remove the ` ` at some time.
     56        // There is a bit of "extra" whitespace in the string (` \n`). It is somewhat deliberate.
     57        // We probably ought to remove the ` ` at some time.
    5758        final String expected = "This is a \nsample \ninscription";
    5859        final String toTest = MessageFormat.format(inscription, expected).replace("sample ", "sample    ");
    59         final Collection<TaggingPreset> presets = TaggingPresets.getMatchingPresets(Collections.singleton(TaggingPresetType.NODE), Map.of("historic", "boundary_stone", "inscription", "bar"), false);
     60        final Collection<TaggingPreset> presets = TaggingPresets.getMatchingPresets(Collections.singleton(TaggingPresetType.NODE),
     61            Map.of("historic", "boundary_stone", "inscription", "bar"), false);
    6062        assertEquals(1, presets.size());
    6163        final TaggingPreset preset = presets.iterator().next();
     
    6870            value = (JComponent) value.getComponent(0);
    6971        }
    70         final JosmTextField textField = assertInstanceOf(JosmTextField.class, value, "Until we support multiline editing, this should be a text field");
     72        final JosmTextField textField = assertInstanceOf(JosmTextField.class, value,
     73            "Until we support multiline editing, this should be a text field");
    7174        textField.setText(toTest);
    7275        text.addCommands(changeCommands);
Note: See TracChangeset for help on using the changeset viewer.