Changeset 9838 in josm for trunk


Ignore:
Timestamp:
2016-02-19T22:33:25+01:00 (8 years ago)
Author:
Don-vip
Message:

checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/preferences/PreferencesWriterTest.java

    r9832 r9838  
    3636            w.visit(setting(new ListListSetting(Arrays.asList(Arrays.asList("bar"))), time));
    3737            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),
    3943                    out.toString());
    4044        }
     
    5155            w.visit(setting(new ListSetting(Arrays.asList("bar")), time));
    5256            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),
    5460                    out.toString());
    5561        }
     
    6874            w.visit(setting(new MapListSetting(Arrays.asList(map)), time));
    6975            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),
    7181                    out.toString());
    7282        }
     
    101111            assertEquals(String.format(
    102112                    // 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",
    104117                    // CHECKSTYLE.ON: LineLength
    105118                    Version.getInstance().getVersion(), time),
     
    110123    /**
    111124     * Test null value in default preferences.
    112      * @throws IOException
     125     * @throws IOException if any I/O error occurs
    113126     */
    114127    @Test
Note: See TracChangeset for help on using the changeset viewer.