edu.uci.ics.jung.graph
Class AbstractHypergraphTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- edu.uci.ics.jung.graph.AbstractHypergraphTest
-
- All Implemented Interfaces:
- junit.framework.Test
public abstract class AbstractHypergraphTest extends junit.framework.TestCase
-
-
Constructor Summary
Constructors Constructor and Description AbstractHypergraphTest(com.google.common.base.Supplier<? extends Hypergraph<java.lang.Integer,java.lang.Character>> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidrunTest()voidtestAddEdge()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 endpointsvoidtestAddVertex()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 successfulvoidtestEdgeEndpoints()test for the following: if Graph, reject # of endpoints != 2 otherwise, accept any (non-negative) number of endpointsvoidtestFindEdge()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.-
Methods inherited from class junit.framework.TestCase
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, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
-
-
-
-
Constructor Detail
-
AbstractHypergraphTest
public AbstractHypergraphTest(com.google.common.base.Supplier<? extends Hypergraph<java.lang.Integer,java.lang.Character>> factory)
-
-
Method Detail
-
runTest
public void runTest() throws java.lang.Exception- Overrides:
runTestin classjunit.framework.TestCase- Throws:
java.lang.Exception
-
testAddVertex
public 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
-
testAddEdge
public 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
-
testEdgeEndpoints
public void testEdgeEndpoints()
test for the following:- if Graph, reject # of endpoints != 2
- otherwise, accept any (non-negative) number of endpoints
-
testFindEdge
public 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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG