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/CADSimulatorGUITest.java

    r19 r34  
    55import java.util.logging.Level; 
    66import java.util.logging.Logger; 
     7 
    78import static junit.framework.Assert.assertEquals; 
    89import static junit.framework.Assert.fail; 
     
    8182        CADSimulatorFixture.writedata("config.txt", configData); 
    8283        System.out.println("CADSimulator constructor"); 
    83         System.setProperty("CAD_SIM_PROPERTIES", "config.txt"); 
     84        System.setProperty("CONFIG_DIR", "config/testConfig"); 
    8485        Window cadwindow = null; 
    85         if (System.getProperty("CAD_SIM_PROPERTIES") != null) 
     86        if (System.getProperty("CONFIG_DIR") != null) 
    8687        { 
    8788            cadwindow = WindowInterceptor.run(new Trigger() 
     
    9192                    try 
    9293                    { 
    93                         app = new CADSimulator(System.getProperty("CAD_SIM_PROPERTIES")); 
     94                        app = new CADSimulator(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + "cad_simulator_config.properties"); 
     95 
    9496                    } catch (Exception e) 
    9597                    { 
     
    100102        } else 
    101103        { 
    102             fail("CAD_SIM_PROPERTIES system property not defined."); 
     104            fail("CONFIG_DIR system property not defined."); 
    103105        } 
    104106        assertEquals("CAD Simulator", cadwindow.getTitle()); 
Note: See TracChangeset for help on using the changeset viewer.