public abstract class AbstractHypergraphTest
extends junit.framework.TestCase
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.base.Supplier<? extends Hypergraph<Integer,Character>> |
factory |
protected Hypergraph<Integer,Character> |
h |
| Constructor and Description |
|---|
AbstractHypergraphTest(com.google.common.base.Supplier<? extends Hypergraph<Integer,Character>> factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
runTest() |
void |
testAddEdge()
test for the following:
add successful iff edge is not present
edge count increases by 1 iff add successful
null edge arg actively rejected
edge reported as present iff add is successful
throw if edge is present with different endpoints
|
void |
testAddVertex()
test for the following:
add successful iff arg is not present
count increases by 1 iff add is successful
null vertex argument actively rejected
vertex reported as present iff add is successful
|
void |
testEdgeEndpoints()
test for the following:
if Graph, reject # of endpoints != 2
otherwise, accept any (non-negative) number of endpoints
|
void |
testFindEdge()
should return null if any of the following is true
v1 is null
v2 is null
there is no edge connecting v1 to v2 in this graph
otherwise should return _an_ edge connecting v1 to v2.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, setUp, tearDown, toStringprotected com.google.common.base.Supplier<? extends Hypergraph<Integer,Character>> factory
protected Hypergraph<Integer,Character> h
public AbstractHypergraphTest(com.google.common.base.Supplier<? extends Hypergraph<Integer,Character>> factory)
public void runTest()
throws Exception
runTest in class junit.framework.TestCaseExceptionpublic void testAddVertex()
public void testAddEdge()
public void testEdgeEndpoints()
public void testFindEdge()
Copyright © 2016. All rights reserved.