Changeset 16282 in josm
- Timestamp:
- 2020-04-12T22:31:36+02:00 (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Combo.java
r16277 r16282 101 101 combobox.setSelectedItem(originalValue); 102 102 } 103 if ( "colour".equals(key) || key.startsWith("colour:") || key.endsWith(":colour")) {103 if (key != null && ("colour".equals(key) || key.startsWith("colour:") || key.endsWith(":colour"))) { 104 104 p.add(combobox, GBC.std().fill(GBC.HORIZONTAL)); 105 105 JButton button = new JButton(new ChooseColorAction()); -
trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/items/CheckTest.java
r9996 r16282 9 9 import javax.swing.JPanel; 10 10 11 import org.junit. BeforeClass;11 import org.junit.Rule; 12 12 import org.junit.Test; 13 import org.openstreetmap.josm.JOSMFixture;14 13 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 import org.openstreetmap.josm.testutils.JOSMTestRules; 15 16 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 15 17 16 18 /** … … 22 24 * Setup test. 23 25 */ 24 @BeforeClass 25 public static void setUp() { 26 JOSMFixture.createUnitTestFixture().init(); 27 } 26 @Rule 27 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 28 public JOSMTestRules test = new JOSMTestRules().main(); 28 29 29 30 /** -
trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/items/ComboTest.java
r9996 r16282 9 9 import javax.swing.JPanel; 10 10 11 import org.junit. BeforeClass;11 import org.junit.Rule; 12 12 import org.junit.Test; 13 import org.openstreetmap.josm.JOSMFixture;14 13 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 import org.openstreetmap.josm.testutils.JOSMTestRules; 15 16 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 15 17 16 18 /** … … 22 24 * Setup test. 23 25 */ 24 @BeforeClass 25 public static void setUp() { 26 JOSMFixture.createUnitTestFixture().init(); 27 } 26 @Rule 27 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 28 public JOSMTestRules test = new JOSMTestRules().main(); 28 29 29 30 /** -
trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/items/TextTest.java
r9996 r16282 9 9 import javax.swing.JPanel; 10 10 11 import org.junit. BeforeClass;11 import org.junit.Rule; 12 12 import org.junit.Test; 13 import org.openstreetmap.josm.JOSMFixture;14 13 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 import org.openstreetmap.josm.testutils.JOSMTestRules; 15 16 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 15 17 16 18 /** … … 22 24 * Setup test. 23 25 */ 24 @BeforeClass 25 public static void setUp() { 26 JOSMFixture.createUnitTestFixture().init(); 27 } 26 @Rule 27 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 28 public JOSMTestRules test = new JOSMTestRules().main(); 28 29 29 30 /**
Note:
See TracChangeset
for help on using the changeset viewer.