Changeset 8540 in josm for trunk/test/unit/org/openstreetmap


Ignore:
Timestamp:
2015-06-27T21:43:35+02:00 (9 years ago)
Author:
Don-vip
Message:

fix remaining checkstyle issues

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java

    r8511 r8540  
    7474            if (!f.exists() || !f.canRead()) {
    7575                fail(MessageFormat.format(
     76                        // CHECKSTYLE.OFF: LineLength
    7677                        "property ''{0}'' points to ''{1}'' which is either not existing ({2}) or not readable ({3}). Current directory is ''{4}''.",
     78                        // CHECKSTYLE.ON: LineLength
    7779                        "josm.home", josmHome, f.exists(), f.canRead(), Paths.get("").toAbsolutePath()));
    7880            }
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java

    r8510 r8540  
    8383
    8484        Random rand = new Random();
    85         try (BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(PROJECTION_DATA_FILE), StandardCharsets.UTF_8))) {
     85        try (BufferedWriter out = new BufferedWriter(new OutputStreamWriter(
     86                new FileOutputStream(PROJECTION_DATA_FILE), StandardCharsets.UTF_8))) {
    8687            out.write("# Data for test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java\n");
    8788            out.write("# Format: 1. Projection code; 2. lat/lon; 3. lat/lon projected -> east/north; 4. east/north (3.) inverse projected\n");
  • trunk/test/unit/org/openstreetmap/josm/data/projection/SwissGridTest.java

    r8513 r8540  
    2323        Main.setProjection(Projections.getProjectionByCode(SWISS_EPSG_CODE)); // Swiss grid
    2424    }
     25
     26    // CHECKSTYLE.OFF: LineLength
    2527
    2628    /**
     
    3436            new ProjData("Monte Generoso",  d(9, 1, 16.389053), d(45, 55, 45.438020), 1685.027, 722758.810, 87649.670, 1636.600) };
    3537
     38    // CHECKSTYLE.ON: LineLength
     39
    3640    private double d(double deg, double min, double sec) {
    3741        return deg + min / 60. + sec / 3600.;
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/LatLonDialogTest.java

    r8509 r8540  
    3636    @Test
    3737    public void test6() throws Exception {
    38         assertThat(LatLonDialog.parseLatLon("N 49°29'04\" E 19°24'43\""), is(new LatLon(49 + 29. / 60 + 04. / 3600, 19 + 24. / 60 + 43. / 3600)));
     38        assertThat(LatLonDialog.parseLatLon("N 49°29'04\" E 19°24'43\""),
     39                is(new LatLon(49 + 29. / 60 + 04. / 3600, 19 + 24. / 60 + 43. / 3600)));
    3940    }
    4041
     
    4647    @Test
    4748    public void test8() throws Exception {
    48         assertThat(LatLonDialog.parseLatLon("49°29'21\" N 19°24'38\" E"), is(new LatLon(49 + 29. / 60 + 21. / 3600, 19 + 24. / 60 + 38. / 3600)));
     49        assertThat(LatLonDialog.parseLatLon("49°29'21\" N 19°24'38\" E"),
     50                is(new LatLon(49 + 29. / 60 + 21. / 3600, 19 + 24. / 60 + 38. / 3600)));
    4951    }
    5052
  • trunk/test/unit/org/openstreetmap/josm/gui/tagging/PresetClassificationsTest.java

    r8511 r8540  
    3636
    3737    private List<TaggingPresetSelector.PresetClassification> getMatchingPresets(String searchText, OsmPrimitive w) {
    38         return classifications.getMatchingPresets(searchText, true, true, EnumSet.of(TaggingPresetType.forPrimitive(w)), Collections.singleton(w));
     38        return classifications.getMatchingPresets(searchText, true, true, EnumSet.of(TaggingPresetType.forPrimitive(w)),
     39                Collections.singleton(w));
    3940    }
    4041
  • trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandlerTest.java

    r8510 r8540  
    7171    public void testRequestParameter4() {
    7272        assertThat(getRequestParameter(
     73                // CHECKSTYLE.OFF: LineLength
    7374                "http://example.com/:@-._~!$&'()*+,=;:@-._~!$&'()*+,=:@-._~!$&'()*+,==?/?:@-._~!$'()*+,;=/?:@-._~!$'()*+,;==#/?:@-._~!$&'()*+,;="),
     75                // CHECKSTYLE.ON: LineLength
    7476                is(Collections.singletonMap("/?:@-._~!$'()* ,;", "/?:@-._~!$'()* ,;==")));
    7577    }
  • trunk/test/unit/org/openstreetmap/josm/tools/template_engine/TemplateEngineTest.java

    r8510 r8540  
    217217    @Test
    218218    public void testMultilevel() throws ParseError {
    219         TemplateParser parser = new TemplateParser("!{(parent(parent(type=type1)) type=grandparent) | (parent type=type2 type=parent2) '{name}'}");
     219        TemplateParser parser = new TemplateParser(
     220                "!{(parent(parent(type=type1)) type=grandparent) | (parent type=type2 type=parent2) '{name}'}");
    220221        DatasetFactory ds = new DatasetFactory();
    221222        Relation parent1 = ds.addRelation(1);
Note: See TracChangeset for help on using the changeset viewer.