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/cadsimulator/CADSimulatorTest.java

    r5 r34  
    5959    { 
    6060        System.out.println("CADSimulator constructor"); 
    61         System.setProperty("CAD_SIM_PROPERTIES", "config/cad_simulator_config.properties"); 
     61        System.setProperty("CONFIG_DIR", "config/testConfig"); 
    6262        Window cadwindow = null; 
    63         if (System.getProperty("CAD_SIM_PROPERTIES") != null) 
     63        if (System.getProperty("CONFIG_DIR") != null) 
    6464        { 
    6565            cadwindow = WindowInterceptor.run(new Trigger() 
     
    6969                    try 
    7070                    { 
    71                         app = new CADSimulator(System.getProperty("CAD_SIM_PROPERTIES")); 
     71                        app = new CADSimulator(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + "cad_simulator_config.properties"); 
    7272                    } 
    7373                    catch (Exception e) 
     
    8080        else 
    8181        { 
    82             fail("CAD_SIM_PROPERTIES system property not defined."); 
     82            fail("CONFIG_DIR system property not defined."); 
    8383        } 
    8484        assertEquals("CAD Simulator", cadwindow.getTitle()); 
Note: See TracChangeset for help on using the changeset viewer.