| Revision 273,
818 bytes
checked in by jdalbey, 7 years ago
(diff) |
|
Add some simple and not comprehensive unit tests for the new utility
|
| Line | |
|---|
| 1 | |
|---|
| 2 | package tmcsim.utilities; |
|---|
| 3 | |
|---|
| 4 | import java.io.File; |
|---|
| 5 | import junit.framework.TestCase; |
|---|
| 6 | |
|---|
| 7 | /** |
|---|
| 8 | * |
|---|
| 9 | * @author jdalbey |
|---|
| 10 | */ |
|---|
| 11 | public class BuildHighwayFileTest extends TestCase |
|---|
| 12 | { |
|---|
| 13 | |
|---|
| 14 | public BuildHighwayFileTest(String testName) |
|---|
| 15 | { |
|---|
| 16 | super(testName); |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | @Override |
|---|
| 20 | protected void setUp() throws Exception |
|---|
| 21 | { |
|---|
| 22 | super.setUp(); |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | @Override |
|---|
| 26 | protected void tearDown() throws Exception |
|---|
| 27 | { |
|---|
| 28 | super.tearDown(); |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | public void testCreateVDSlookup() |
|---|
| 32 | { |
|---|
| 33 | System.out.println("createVDSlookup"); |
|---|
| 34 | BuildHighwayFile instance = new BuildHighwayFile(); |
|---|
| 35 | instance.createLanelookup(); |
|---|
| 36 | String filename = BuildHighwayFile.filepath +BuildHighwayFile.reformattedLoopFile; |
|---|
| 37 | File f = new File(filename); |
|---|
| 38 | assert(f.exists()); |
|---|
| 39 | } |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.