Last change
on this file since 18918 was 18918, checked in by taylor.smock, 6 months ago |
Fix #23290: Validate the regions a tag is expected to be in (patch by Sarabjeet108, modified)
Modifications are as follows:
- Allow the use of the new
region attributes for keys inside a preset
- Basic tests
regions comes from Vespucci's extensions: https://vespucci.io/tutorials/presets/#extensions
|
-
Property svn:eol-style
set to
native
|
File size:
551 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.tagging.presets.items;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetItemTest;
|
---|
5 | import org.openstreetmap.josm.testutils.annotations.TaggingPresets;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * Unit tests of {@link PresetLink} class.
|
---|
9 | */
|
---|
10 | @TaggingPresets
|
---|
11 | class PresetLinkTest implements TaggingPresetItemTest {
|
---|
12 | @Override
|
---|
13 | public PresetLink getInstance() {
|
---|
14 | PresetLink presetLink = new PresetLink();
|
---|
15 | presetLink.preset_name = "River";
|
---|
16 | return presetLink;
|
---|
17 | }
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.