Ignore:
Timestamp:
2019-07-13T18:41:24+02:00 (5 years ago)
Author:
Don-vip
Message:

see #17885 - extract Functions class

Location:
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactoryTest.java

    r11921 r15245  
    44import org.junit.Rule;
    55import org.junit.Test;
    6 import org.openstreetmap.josm.gui.mappaint.mapcss.ExpressionFactory.Functions;
    76import org.openstreetmap.josm.testutils.JOSMTestRules;
    87
  • trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.java

    r15196 r15245  
    422422        /* Check with empty role and one object */
    423423        Environment e = new Environment(rel1, new MultiCascade(), Environment.DEFAULT_LAYER, null);
    424         assertEquals(1, ExpressionFactory.Functions.count_roles(e, ""));
     424        assertEquals(1, Functions.count_roles(e, ""));
    425425
    426426        /* Check with non-empty role and one object */
    427427        e = new Environment(rel1, new MultiCascade(), Environment.DEFAULT_LAYER, null);
    428         assertEquals(0, ExpressionFactory.Functions.count_roles(e, "from"));
     428        assertEquals(0, Functions.count_roles(e, "from"));
    429429
    430430        /* Check with empty role and two objects */
     
    433433        rel1.addMember(new RelationMember("", way2));
    434434        e = new Environment(rel1, new MultiCascade(), Environment.DEFAULT_LAYER, null);
    435         assertEquals(2, ExpressionFactory.Functions.count_roles(e, ""));
     435        assertEquals(2, Functions.count_roles(e, ""));
    436436
    437437        /* Check with non-empty role and two objects */
    438438        rel1.setMember(0, new RelationMember("from", way1));
    439439        e = new Environment(rel1, new MultiCascade(), Environment.DEFAULT_LAYER, null);
    440         assertEquals(1, ExpressionFactory.Functions.count_roles(e, "from"));
     440        assertEquals(1, Functions.count_roles(e, "from"));
    441441
    442442        /* Check with multiple roles */
    443         assertEquals(1, ExpressionFactory.Functions.count_roles(e, "from", "to"));
     443        assertEquals(1, Functions.count_roles(e, "from", "to"));
    444444
    445445        /* Check with non-relation */
    446446        e = new Environment(way1, new MultiCascade(), Environment.DEFAULT_LAYER, null);
    447         assertEquals(0, ExpressionFactory.Functions.count_roles(e, "from", "to"));
     447        assertEquals(0, Functions.count_roles(e, "from", "to"));
    448448    }
    449449
Note: See TracChangeset for help on using the changeset viewer.