Changeset 9533 in josm
- Timestamp:
- 2016-01-18T23:47:48+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/CustomConfiguratorTest.java
r9524 r9533 103 103 CustomConfigurator.readXML(TestUtils.getTestDataRoot() + "customconfigurator", "append.xml"); 104 104 String log = CustomConfigurator.getLog(); 105 System.out.println(log); 106 assertFalse(log.contains("Error")); 105 assertFalse(log, log.contains("Error")); 107 106 assertFalse(Main.pref.getCollection("test").isEmpty()); 108 107 109 // Test 1- read(file, pref) + replace108 // Test 2 - read(file, pref) + replace 110 109 Preferences pref = new Preferences(); 110 // avoid messing up preferences file (that makes all following unit tests fail) 111 pref.enableSaveOnPut(false); 111 112 pref.putCollection("lorem_ipsum", Arrays.asList("only 1 string")); 112 113 assertEquals(1, pref.getCollection("lorem_ipsum").size()); 113 114 CustomConfigurator.readXML(new File(TestUtils.getTestDataRoot() + "customconfigurator", "replace.xml"), pref); 114 115 log = CustomConfigurator.getLog(); 115 System.out.println(log); 116 assertFalse(log.contains("Error")); 116 assertFalse(log, log.contains("Error")); 117 117 assertEquals(9, pref.getCollection("lorem_ipsum").size()); 118 118 }
Note:
See TracChangeset
for help on using the changeset viewer.