Changeset 16329 in josm for trunk/test


Ignore:
Timestamp:
2020-04-17T21:45:33+02:00 (6 years ago)
Author:
simon04
Message:

fix #18830 - Remove PreferencesUtils#readPrefsFromJS due to Nashorn removal

Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/data/customconfigurator/append.xml

    r9958 r16329  
    11<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    22<config>
     3<var name="secret" value="JOSM"/>
    34<preferences operation="append">
    45<list key="test">
    56    <entry value="11111111"/>
    67    <entry value="2222222"/>
    7     <entry value="333333333"/>
     8    <entry value="${secret}"/>
    89  </list>
    910</preferences>
  • trunk/test/unit/org/openstreetmap/josm/gui/io/CustomConfiguratorTest.java

    r15716 r16329  
    8484        String log = PreferencesUtils.getLog();
    8585        assertFalse(log, log.contains("Error"));
    86         assertFalse(Config.getPref().getList("test").isEmpty());
     86        assertEquals(Arrays.asList("11111111", "2222222", "JOSM"), Config.getPref().getList("test"));
    8787
    8888        // Test 2 - read(file, pref) + replace
Note: See TracChangeset for help on using the changeset viewer.