Changeset 343 in tmcsimulator for trunk/test/atmsdriver/model/StationTest.java


Ignore:
Timestamp:
03/23/2019 05:40:52 PM (7 years ago)
Author:
jdalbey
Message:

Fix defect #117. Update HighwaysTest?.java for new highway model.

File:
1 edited

Legend:

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

    r186 r343  
    7474    } 
    7575 
     76    public void testMatches() 
     77    { 
     78        Station alpha = new Station(1,2,3,"A",new ArrayList<LoopDetector>(), 4, DIRECTION.NORTH, 2.0); 
     79        assertTrue(alpha.matches(DIRECTION.NORTH, 2.0)); 
     80        assertFalse(alpha.matches(DIRECTION.NORTH,2.1)); 
     81    } 
    7682    /** 
    7783     * TODO: Test of toXML method, of class Station. 
Note: See TracChangeset for help on using the changeset viewer.