Skip to content

Commit df9d8db

Browse files
committed
Add graph test code
1 parent cdeda61 commit df9d8db

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package us.narin.summarizer;
2+
3+
import junit.framework.Test;
4+
import junit.framework.TestCase;
5+
import junit.framework.TestSuite;
6+
import org.jgrapht.graph.DefaultWeightedEdge;
7+
import org.jgrapht.graph.SimpleWeightedGraph;
8+
9+
/**
10+
* Unit test for simple Summarizer.
11+
*/
12+
public class GraphTest
13+
extends TestCase {
14+
/**
15+
* Create the test case
16+
*
17+
* @param testName name of the test case
18+
*/
19+
public GraphTest(String testName) {
20+
SimpleWeightedGraph<String, DefaultWeightedEdge> graph = new SimpleWeightedGraph<>(DefaultWeightedEdge.class);
21+
graph.addVertex("A");
22+
graph.addVertex("B");
23+
graph.addVertex("C");
24+
graph.addVertex("D");
25+
26+
27+
}
28+
29+
/**
30+
* @return the suite of tests being tested
31+
*/
32+
public static Test suite() {
33+
return new TestSuite(AppTest.class);
34+
}
35+
36+
/**
37+
* Rigourous Test :-)
38+
*/
39+
public void testApp() {
40+
assertTrue(true);
41+
}
42+
}

0 commit comments

Comments
 (0)