Ignore:
Timestamp:
04/29/2016 12:56:43 AM (10 years ago)
Author:
bokumura
Message:

Change unit tests to work with the new config directory restructure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tmcsim/simulationmanager/SimulationManagerSmokeTest.java

    r13 r34  
    3535 
    3636        Window cadwindow = null; 
    37         System.setProperty("CAD_SIM_PROPERTIES", "config/cad_simulator_smoketest_config.properties"); 
    38         if (System.getProperty("CAD_SIM_PROPERTIES") != null) 
     37        System.setProperty("CONFIG_DIR", "config/testConfig"); 
     38        if (System.getProperty("CONFIG_DIR") != null) 
    3939        { 
    4040            cadwindow = WindowInterceptor.run(new Trigger() 
     
    4444                    try 
    4545                    { 
    46                         engine = new CADSimulator(System.getProperty("CAD_SIM_PROPERTIES")); 
     46                        engine = new CADSimulator(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + "cad_simulator_config.properties"); 
     47 
    4748                    } catch (Exception e) 
    4849                    { 
     
    5354        } else 
    5455        { 
    55             fail("CAD_SIM_PROPERTIES system property not defined."); 
     56            fail("CONFIG_DIR system property not defined."); 
    5657        } 
    5758 
     
    6667 
    6768        Window simMgrWindow = null; 
    68         System.setProperty("SIM_MGR_PROPERTIES", "config/sim_manager_smoketest_config.properties"); 
    69         if (System.getProperty("SIM_MGR_PROPERTIES") != null) 
     69        System.setProperty("CONFIG_DIR", "config/testConfig"); 
     70        if (System.getProperty("CONFIG_DIR") != null) 
    7071        { 
    7172            simMgrWindow = WindowInterceptor.run(new Trigger() 
     
    7576                    try 
    7677                    { 
    77                         simMgrApp = new SimulationManager(System.getProperty("SIM_MGR_PROPERTIES")); 
     78                        //simMgrApp = new SimulationManager(System.getProperty("SIM_MGR_PROPERTIES")); 
     79                        simMgrApp = new SimulationManager(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + "sim_manager_config.properties"); 
    7880                    } catch (Exception ex) 
    7981                    { 
     
    8486        } else 
    8587        { 
    86             fail("SIM_MGR_PROPERTIES system property not defined."); 
     88            fail("CONFIG_DIR system property not defined."); 
    8789        } 
    8890 
Note: See TracChangeset for help on using the changeset viewer.