Documentation of 'edu.uci.ics.jung.graph.AbstractHypergraphTest' Java class
AbstractHypergraphTest
edu.uci.ics.jung.graph

Class 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
      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.
      • 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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:
        runTest in class junit.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
        otherwise should return _an_ edge connecting v1 to v2. May be directed or undirected (depending on the graph); may be any of the edges in the graph that so connect v1 and v2. Must _not_ return any directed edge for which v1 and v2 are distinct and v2 is the source.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.