blob: cdac0c240b24e49cc155ac5ce01b0749737f73ff [file] [log] [blame]
Thomas Vachuska6b331262015-04-27 11:09:07 -07001package org.onlab.jdvue;
2
3import org.junit.Test;
4import org.onlab.jdvue.DependencyViewer;
5
6import java.io.FileInputStream;
7import java.io.IOException;
8
9import static org.junit.Assert.assertEquals;
10import static org.junit.Assert.assertNotEquals;
11import static org.onlab.jdvue.DependencyViewer.slurp;
12
13/**
14 * Unit test for the dependency viewer.
15 *
16 * @author Thomas Vachuska
17 */
18public 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}