blob: 8df67acdf39b56cd78378ef6f2e0cdc6e7aa6c31 [file] [log] [blame]
Thomas Vachuska58de4162015-09-10 16:15:33 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Thomas Vachuska58de4162015-09-10 16:15:33 -07003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Thomas Vachuska6b331262015-04-27 11:09:07 -070016package org.onlab.jdvue;
17
18import org.junit.Test;
19import org.onlab.jdvue.DependencyViewer;
20
21import java.io.FileInputStream;
22import java.io.IOException;
23
24import static org.junit.Assert.assertEquals;
25import static org.junit.Assert.assertNotEquals;
26import static org.onlab.jdvue.DependencyViewer.slurp;
27
28/**
29 * Unit test for the dependency viewer.
30 *
31 * @author Thomas Vachuska
32 */
33public class DependencyViewerTest {
34
35 @Test
36 public void basics() throws IOException {
37 DependencyViewer.main(new String[]{"src/test/resources/catalog"});
38
39 String expected = slurp(new FileInputStream("src/test/resources/expected.html"));
40 String actual = slurp(new FileInputStream("src/test/resources/catalog.html"));
41
42 // FIXME: add more manageable assertions here
43// assertEquals("incorrect html", expected, actual);
44 }
45
46}