Ignore:
Timestamp:
09/08/2022 02:22:57 PM (4 years ago)
Author:
jdalbey
Message:

Update unit tests to correct changes in display messages, directory paths, and button names.

File:
1 edited

Legend:

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

    r558 r653  
    99import java.util.logging.Logger; 
    1010import junit.framework.TestCase; 
     11import org.apache.commons.lang.StringUtils; 
    1112import static org.mockito.Mockito.mock; 
    1213import tmcsim.cadsimulator.viewer.CADConsoleViewer; 
     
    7475    { 
    7576        String result = sw.toString().trim(); 
     77        System.out.println(""+result); 
    7678        result = result.replaceAll("\n", ","); 
    7779        String fullExpect = expect.trim(); 
     
    221223                + "Network Loaded              : None\n" 
    222224                + "-- Info Messages --\n" 
    223                 + ". = Console Info Message.\n" 
     225                + ". = Console Info Message." 
     226                + "tmcsim.cadsimulator.Coordinator.copyXMLfile = Loaded script copied to webapps/dynamicdata/incident_script.xml\n" 
    224227                + "-- Error Messages --\n" 
    225228                + "Someclass.Somemethod = Sample error message.\n"; 
     
    233236                + "Network Loaded              : None\n" 
    234237                + "-- Info Messages --\n" 
    235                 + ". = Console Info Message.\n" 
     238                + ". = Console Info Message." 
     239                + "tmcsim.cadsimulator.Coordinator.copyXMLfile = Loaded script copied to webapps/dynamicdata/incident_script.xml\n" 
    236240                + "-- Error Messages --\n" 
    237241                + "Someclass.Somemethod = Sample error message.\n"; 
     
    240244        String autoloadScriptname = kScenarioFolder+"/one-incident.xml"; 
    241245        app.theCoordinator.loadScriptFile(new File(autoloadScriptname)); 
    242         pause(500); 
     246        pause(2000); 
    243247        verify("Status should be 'ready'", expected8); 
    244248        // startSimulation to put status at Running 
Note: See TracChangeset for help on using the changeset viewer.