Changeset 14149 in josm for trunk/test/unit/org/openstreetmap/josm/data/preferences
- Timestamp:
- 2018-08-12T17:24:32+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/preferences/NamedColorPropertyTest.java
r12989 r14149 11 11 import org.junit.Rule; 12 12 import org.junit.Test; 13 import org.openstreetmap.josm. Main;13 import org.openstreetmap.josm.data.Preferences; 14 14 import org.openstreetmap.josm.spi.preferences.Config; 15 15 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 18 18 19 19 /** 20 * Test {@link ColorProperty}20 * Test {@link NamedColorProperty} 21 21 * @author Michael Zangl 22 22 */ … … 39 39 40 40 /** 41 * Test {@link ColorProperty#get()}41 * Test {@link NamedColorProperty#get()} 42 42 */ 43 43 @Test … … 47 47 48 48 /** 49 * Test {@link ColorProperty#put}49 * Test {@link NamedColorProperty#put} 50 50 */ 51 51 @Test … … 67 67 public void testColorAlpha() { 68 68 assertEquals(0x12, new NamedColorProperty("foo", new Color(0x12345678, true)).get().getAlpha()); 69 assertTrue( Main.pref.putList("clr.general.bar", Arrays.asList("#34567812", "general", "", "bar")));69 assertTrue(Preferences.main().putList("clr.general.bar", Arrays.asList("#34567812", "general", "", "bar"))); 70 70 assertEquals(0x12, new NamedColorProperty("bar", Color.RED).get().getAlpha()); 71 71 } … … 80 80 81 81 /** 82 * Test {@link ColorProperty#getChildColor(String)}82 * Test {@link NamedColorProperty#getChildColor(String)} 83 83 */ 84 84 @Test
Note:
See TracChangeset
for help on using the changeset viewer.