Changeset 345 in tmcsimulator for trunk/test/tmcsim


Ignore:
Timestamp:
03/24/2019 09:48:29 AM (7 years ago)
Author:
jdalbey
Message:

minor changes to output messages to get unit tests to pass. All passing now.

Location:
trunk/test/tmcsim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tmcsim/cadsimulator/CADSimulatorConsoleTest.java

    r228 r345  
    7575        fullExpect = fullExpect.replaceAll("\n", ","); 
    7676//        System.out.println(fullExpect); 
    77 //        System.out.println(result.substring(result.length() - fullExpect.length(), result.length())); 
     77        System.out.println(result.substring(result.length() - fullExpect.length(), result.length())); 
    7878//        String diff = StringUtils.difference(fullExpect, result); 
    7979        boolean match = result.endsWith(fullExpect); 
     
    276276            +"Events_File = config/vds_data/atmsBatchEvents.txt\n" 
    277277            +"FEPSim_IP_addr = localhost\n" 
    278             +"Output_Destination = Console\n"; 
     278            +"Output_Destination = Console\n" 
     279            +"Json_Path = /tmp/highway_status.json\n"; 
    279280    static final String paramicsData = "ParamicsCommHost = 127.0.0.1\n" 
    280281            + "ParamicsCommPort       = 4450\n" 
     
    303304        cf.delete(); 
    304305        writedata("config.txt", configData); 
     306        File tf = new File ("tconfig.txt"); 
     307        tf.delete(); 
    305308        writedata("tconfig.txt", trafficMgrData); 
    306309        writedata("pconfig.txt", paramicsData); 
  • trunk/test/tmcsim/utilities/BuildHighwayFileTest.java

    r338 r345  
    2929    } 
    3030 
    31     public void testCreateVDSlookup() 
     31    /** Just a smoke test to see if it creates the output file */ 
     32    public void testCheckFileCreated() 
    3233    { 
    3334        System.out.println("createVDSlookup"); 
    34         BuildHighwayFile instance = new BuildHighwayFile(); 
    35         instance.createLanelookup(); 
     35        BuildHighwayFile app = new BuildHighwayFile(); 
     36        app.createLDSdict(); 
     37        app.createVDSdict(); 
     38        app.createLanelookup(); 
     39        app.createHighwayFile(); 
     40        app.showLeftoverVDS(); 
     41 
    3642        String filename = BuildHighwayFile.dirpath +BuildHighwayFile.loopFileName; 
    3743        File f = new File(filename); 
Note: See TracChangeset for help on using the changeset viewer.