Changeset 285 in josm for test/functional/framework


Ignore:
Timestamp:
2007-07-11T21:41:12+02:00 (18 years ago)
Author:
imi
Message:
  • fixed test dependencies
  • added more functional tests
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/functional/framework/FunctionalTestCase.java

    r284 r285  
    2525
    2626import org.openstreetmap.josm.Main;
     27import org.openstreetmap.josm.data.Preferences;
     28import org.openstreetmap.josm.data.osm.DataSet;
    2729import org.openstreetmap.josm.gui.MainApplication;
    2830
    29 public class FunctionalTestCase extends JFCTestCase {
     31abstract public class FunctionalTestCase extends JFCTestCase {
    3032
    3133        private KeyStroke getKey(String s) {
     
    6567                super.setUp();
    6668                setHelper(new RobotTestHelper());
     69               
     70                Main.ds = new DataSet();
     71                Main.pref = new Preferences();
     72                if (Main.map != null)
     73                        Main.main.setMapFrame(null);
     74               
    6775                MainApplication.main(new String[]{});
     76        }
     77       
     78        @Override protected void tearDown() throws Exception {
     79                Main.parent.setVisible(false);
     80                super.tearDown();
    6881        }
    6982
Note: See TracChangeset for help on using the changeset viewer.