Changeset 32363 in osm for applications/editors
- Timestamp:
- 2016-06-22T23:41:51+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/editor
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/editor/JosmSelectionListModelTest.groovy
r30555 r32363 4 4 5 5 import org.openstreetmap.josm.gui.MainApplication; 6 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 6 import org.openstreetmap.josm.gui.layer.OsmDataLayer 7 import org.openstreetmap.josm.testutils.JOSMTestRules; 8 7 9 import javax.swing.DefaultListSelectionModel; 8 10 import org.openstreetmap.josm.data.osm.*; … … 21 23 */ 22 24 class JosmSelectionListModelTest extends GroovyTestCase { 23 final shouldFail = new GroovyTestCase().&shouldFail 24 25 @Before 26 public void setUp() { 27 JOSMFixture.createUnitTestFixture().init() 28 } 29 25 final shouldFail = new GroovyTestCase().&shouldFail 26 27 @Rule 28 public JOSMTestRules rules = new JOSMTestRules().preferences(); 29 30 30 @Test 31 31 public void test_Constructor(){ -
applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditorModelUnitTest.groovy
r30555 r32363 14 14 import org.openstreetmap.josm.data.coor.* 15 15 import org.openstreetmap.josm.fixtures.JOSMFixture; 16 import org.openstreetmap.josm.gui.layer.OsmDataLayer ;17 16 import org.openstreetmap.josm.gui.layer.OsmDataLayer 17 import org.openstreetmap.josm.testutils.JOSMTestRules; 18 18 import org.openstreetmap.josm.JOSMFixture; 19 19 … … 24 24 class TurnRestrictionEditorModelUnitTest extends GroovyTestCase{ 25 25 26 final shouldFail = new GroovyTestCase().&shouldFail 27 26 final shouldFail = new GroovyTestCase().&shouldFail 27 28 @Rule 29 public JOSMTestRules rules = new JOSMTestRules().preferences(); 30 28 31 def navigationControlerMock = [ 29 32 gotoBasicEditor:{}, … … 96 99 @Before 97 100 public void setUp() { 98 JOSMFixture.createUnitTestFixture().init()99 100 101 ds = new DataSet() 101 102 layer = new OsmDataLayer(ds, "test", null) 102 103 model = new TurnRestrictionEditorModel(layer, navigationControlerMock); 103 104 } 104 105 106 105 107 106 /** -
applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionLegEditorUnitTest.groovy
r30555 r32363 4 4 5 5 import org.openstreetmap.josm.data.osm.DataSet; 6 import org.openstreetmap.josm.gui.layer.OsmDataLayer ;7 6 import org.openstreetmap.josm.gui.layer.OsmDataLayer 7 import org.openstreetmap.josm.testutils.JOSMTestRules; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 9 … … 15 15 */ 16 16 class TurnRestrictionLegEditorUnitTest extends GroovyTestCase { 17 final shouldFail = new GroovyTestCase().&shouldFail 18 17 final shouldFail = new GroovyTestCase().&shouldFail 18 19 @Rule 20 public JOSMTestRules rules = new JOSMTestRules().preferences(); 21 19 22 def navigationControlerMock = [ 20 23 gotoBasicEditor:{}, … … 28 31 @Before 29 32 public void setUp() { 30 JOSMFixture.createUnitTestFixture().init()31 32 33 ds = new DataSet() 33 34 layer = new OsmDataLayer(ds, "test", null) -
applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionTypeRendererTest.groovy
r30555 r32363 7 7 8 8 import java.awt.Component 9 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.JOSMFixture 10 import org.openstreetmap.josm.testutils.JOSMTestRules;; 10 11 11 12 class TurnRestrictionTypeRendererTest extends GroovyTestCase{ 12 13 13 @Before 14 public void setUp() { 15 JOSMFixture.createUnitTestFixture().init() 16 } 17 14 @Rule 15 public JOSMTestRules rules = new JOSMTestRules().preferences(); 16 18 17 @Test 19 18 public void test_Constructor() {
Note:
See TracChangeset
for help on using the changeset viewer.