Changeset 19262 in josm for trunk/test
- Timestamp:
- 2024-11-25T23:17:46+01:00 (7 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/items/TextTest.java
r19261 r19262 54 54 @ValueSource(strings = {"\n\n\n\t\r {0}\n\n\n", "{0}"}) 55 55 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. 57 58 final String expected = "This is a \nsample \ninscription"; 58 59 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); 60 62 assertEquals(1, presets.size()); 61 63 final TaggingPreset preset = presets.iterator().next(); … … 68 70 value = (JComponent) value.getComponent(0); 69 71 } 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"); 71 74 textField.setText(toTest); 72 75 text.addCommands(changeCommands);
Note:
See TracChangeset
for help on using the changeset viewer.