Thomas Vachuska | 6b33126 | 2015-04-27 11:09:07 -0700 | [diff] [blame^] | 1 | package org.onlab.jdvue; |
| 2 | |
| 3 | import org.junit.Test; |
| 4 | import org.onlab.jdvue.DependencyViewer; |
| 5 | |
| 6 | import java.io.FileInputStream; |
| 7 | import java.io.IOException; |
| 8 | |
| 9 | import static org.junit.Assert.assertEquals; |
| 10 | import static org.junit.Assert.assertNotEquals; |
| 11 | import static org.onlab.jdvue.DependencyViewer.slurp; |
| 12 | |
| 13 | /** |
| 14 | * Unit test for the dependency viewer. |
| 15 | * |
| 16 | * @author Thomas Vachuska |
| 17 | */ |
| 18 | public class DependencyViewerTest { |
| 19 | |
| 20 | @Test |
| 21 | public void basics() throws IOException { |
| 22 | DependencyViewer.main(new String[]{"src/test/resources/catalog"}); |
| 23 | |
| 24 | String expected = slurp(new FileInputStream("src/test/resources/expected.html")); |
| 25 | String actual = slurp(new FileInputStream("src/test/resources/catalog.html")); |
| 26 | |
| 27 | // FIXME: add more manageable assertions here |
| 28 | // assertEquals("incorrect html", expected, actual); |
| 29 | } |
| 30 | |
| 31 | } |