Changeset 9838 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2016-02-19T22:33:25+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/preferences/PreferencesWriterTest.java
r9832 r9838 36 36 w.visit(setting(new ListListSetting(Arrays.asList(Arrays.asList("bar"))), time)); 37 37 assertEquals(String.format( 38 " <lists key='null' time='%d'>%n <list>%n <entry value='bar'/>%n </list>%n </lists>%n", time), 38 " <lists key='null' time='%d'>%n" + 39 " <list>%n" + 40 " <entry value='bar'/>%n" + 41 " </list>%n" + 42 " </lists>%n", time), 39 43 out.toString()); 40 44 } … … 51 55 w.visit(setting(new ListSetting(Arrays.asList("bar")), time)); 52 56 assertEquals(String.format( 53 " <list key='null' time='%d'>%n <entry value='bar'/>%n </list>%n", time), 57 " <list key='null' time='%d'>%n" + 58 " <entry value='bar'/>%n" + 59 " </list>%n", time), 54 60 out.toString()); 55 61 } … … 68 74 w.visit(setting(new MapListSetting(Arrays.asList(map)), time)); 69 75 assertEquals(String.format( 70 " <maps key='null' time='%d'>%n <map>%n <tag key='foo' value='bar'/>%n </map>%n </maps>%n", time), 76 " <maps key='null' time='%d'>%n" + 77 " <map>%n" + 78 " <tag key='foo' value='bar'/>%n" + 79 " </map>%n" + 80 " </maps>%n", time), 71 81 out.toString()); 72 82 } … … 101 111 assertEquals(String.format( 102 112 // CHECKSTYLE.OFF: LineLength 103 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>%n<preferences-defaults xmlns='http://josm.openstreetmap.de/preferences-1.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' version='%d'>%n <tag key='foo' time='%d' value='bar'/>%n</preferences-defaults>%n", 113 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>%n" + 114 "<preferences-defaults xmlns='http://josm.openstreetmap.de/preferences-1.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' version='%d'>%n" + 115 " <tag key='foo' time='%d' value='bar'/>%n" + 116 "</preferences-defaults>%n", 104 117 // CHECKSTYLE.ON: LineLength 105 118 Version.getInstance().getVersion(), time), … … 110 123 /** 111 124 * Test null value in default preferences. 112 * @throws IOException 125 * @throws IOException if any I/O error occurs 113 126 */ 114 127 @Test
Note:
See TracChangeset
for help on using the changeset viewer.