Ignore:
Timestamp:
2016-06-22T09:57:50+02:00 (8 years ago)
Author:
donvip
Message:

update unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilderTest.groovy

    r30557 r32361  
    1414import org.openstreetmap.josm.data.coor.LatLon;
    1515import static org.openstreetmap.josm.plugins.turnrestrictions.TurnRestrictionBuilder.*
    16 import org.openstreetmap.josm.plugins.turnrestrictions.editor.TurnRestrictionType;
     16import org.openstreetmap.josm.plugins.turnrestrictions.editor.TurnRestrictionType
     17import org.openstreetmap.josm.testutils.JOSMTestRules;;
    1718
    1819class TurnRestrictionBuilderTest{
    1920       
    20         def TurnRestrictionBuilder builder;
     21    @Rule
     22    public JOSMTestRules rules = new JOSMTestRules().preferences();
     23
     24    def TurnRestrictionBuilder builder = new TurnRestrictionBuilder();
    2125
    2226        def boolean hasExactlyOneMemberWithRole(Relation r, String role ){
     
    3539        }
    3640       
    37         @Before
    38         public void setUp() {
    39                 JOSMFixture.createUnitTestFixture().init()
    40                 builder = new TurnRestrictionBuilder()
    41         }
    42 
    4341        /**
    4442         * Selection consist of one way and the start node of the way ->
Note: See TracChangeset for help on using the changeset viewer.