Changeset 228 in tmcsimulator for trunk/test


Ignore:
Timestamp:
11/06/2017 03:27:20 PM (8 years ago)
Author:
jdalbey
Message:

System Tests updated to work with new integrated Traffic Mgr. All system tests now passing.

Location:
trunk/test
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/atmsdriver/model/HighwaysTest.java

    r213 r228  
    8686        String result = highways.toString(); 
    8787        System.out.println(result); 
    88         assertEquals(expToString, result); 
    89     } 
    90     String expToString =  
    91         "241 ------------------------------------------------------------\n" 
    92        +"  5 @-------------------------------------------------------------------------------------------------------------------------------------------\n" 
    93        +"405 --------------------------------------------------------------------------------\n" 
    94        +"133 ----------------\n" 
    95        +"261 -----------------\n" 
    96        +" 22 ----------------------------------\n" 
    97        +" 55 ------------------------------------------\n" 
    98        +" 73 -----------------------------------------------------\n" 
    99        +" 57 ------------------------------------------\n" 
    100        +" 91 --------------------------------------------------------------\n" 
    101        +"605 ---\n"; 
     88        assertTrue(result.startsWith(expToString1)); 
     89    } 
     90    String expToString1 =  
     91    "241 N -- ------ -- ------- -------------------------------------  \n" + 
     92"241 S   - --- --  --------- ------------------------------------  \n" + 
     93"  5 N  - - ------ ---  --- -- --- ----  - -- - -  -- - - -    -- -- - ---- -- -- --- - - -- -  ----- ----- --- -  - -- --  - - ---- - - - ------- \n" + 
     94"  5 S @--"; 
     95 
     96    
    10297 
    10398     
  • trunk/test/tmcsim/cadsimulator/CADSimulatorConsoleTest.java

    r123 r228  
    271271            + "ParamicsProperties     = pconfig.txt\n" 
    272272            + "ATMSProperties         = empty.txt\n" 
     273            + "TrafficMgrProperties   = tconfig.txt\n" 
    273274            + "MediaProperties        = empty.txt\n"; 
     275    static final String trafficMgrData = "Highways_Map_File = config/vds_data/highways_fullmap.txt\n" 
     276            +"Events_File = config/vds_data/atmsBatchEvents.txt\n" 
     277            +"FEPSim_IP_addr = localhost\n" 
     278            +"Output_Destination = Console\n"; 
    274279    static final String paramicsData = "ParamicsCommHost = 127.0.0.1\n" 
    275280            + "ParamicsCommPort       = 4450\n" 
     
    295300        // Redirect the standard output 
    296301//        System.setOut(ps); 
     302        File cf = new File ("config.txt"); 
     303        cf.delete(); 
    297304        writedata("config.txt", configData); 
     305        writedata("tconfig.txt", trafficMgrData); 
    298306        writedata("pconfig.txt", paramicsData); 
    299307        writedata("empty.txt", ""); 
  • trunk/test/tmcsim/cadsimulator/CADSimulatorGUITest.java

    r123 r228  
    9494        // Create a UISpec window from the CADSimulator's Viewer (gui) 
    9595//        cadwindow = new Window((CADSimulatorViewer) app.theViewer); 
    96         assertTrue("Title bar incorrect", cadwindow.getTitle().startsWith("CAD Simulator revision:")); 
     96        assertTrue("Title bar incorrect", cadwindow.getTitle().startsWith("CAD Server revision:")); 
    9797        Panel mainPanel = cadwindow.getPanel("contentPane"); 
    9898        TextBox txtStatus = mainPanel.getTextBox("simulationStatus"); 
  • trunk/test/tmcsim/cadsimulator/viewer/CADSimulatorViewModelTest.java

    r124 r228  
    4040    { 
    4141        String actual; 
    42         assertTrue("Title bar incorrect", cadwindow.getTitle().trim().startsWith("CAD Simulator")); 
     42        assertTrue("Title bar incorrect", cadwindow.getTitle().trim().startsWith("CAD Server")); 
    4343        TextBox txtStatus = mainPanel.getTextBox("simulationStatus"); 
    4444        actual = txtStatus.getText().trim(); 
  • trunk/test/tmcsim/simulationmanager/SimulationManagerSmokeTest.java

    r123 r228  
    6767 
    6868        // Check CAD Simulator appears with no script and nothing connected 
    69         assertTrue("Window title incorrect", cadwindow.getTitle().startsWith("CAD Simulator")); 
     69        assertTrue("Window title incorrect", cadwindow.getTitle().startsWith("CAD Server")); 
    7070        Panel mainPanel = cadwindow.getPanel("contentPane"); 
    7171        TextBox txtStatus = mainPanel.getTextBox("simulationStatus"); 
Note: See TracChangeset for help on using the changeset viewer.