net.sf.farrago.test
Class JmiModelTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.eigenbase.test.DiffTestCase
net.sf.farrago.test.ResultSetTestCase
net.sf.farrago.test.FarragoTestCase
net.sf.farrago.test.JmiModelTest
- All Implemented Interfaces:
- Test
public class JmiModelTest
- extends FarragoTestCase
JmiModelTest is a unit test for JmiModelGraph
and JmiModelView
.
NOTE: this test lives here rather than under org.eigenbase because it
currently depends on MDR for a JMI implementation.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/test/JmiModelTest.java#11 $
- Author:
- John V. Sichi
Methods inherited from class net.sf.farrago.test.FarragoTestCase |
forceShutdown, getJdbcUri, getSession, getTestlogRoot, getTestlogRootStatic, newConnection, newJdbcEngineDriver, restoreParameters, restoreParameters, runCleanup, runSqlLineTest, runSqlLineTest, saveParameters, saveParameters, setRefFileDiffMasks, setUp, shouldDiff, staticSetUp, staticTearDown, tearDown, tearDownImpl, wrappedSuite, wrappedSuite |
Methods inherited from class junit.framework.Assert |
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, fail, fail, failNotEquals, failNotSame, failSame, format |
JmiModelTest
public JmiModelTest(String testName)
throws Exception
- Creates a new JmiModelTest object.
- Parameters:
testName
- JUnit test name
- Throws:
Exception
- .
suite
public static Test suite()
testModelGraph
public void testModelGraph()
throws Exception
- Tests construction of the JmiModelGraph for the MOF model.
- Throws:
Exception
testInheritanceGraph
public void testInheritanceGraph()
throws Exception
- Tests construction of the inheritance graph for the MOF model.
- Throws:
Exception
testAssocGraph
public void testAssocGraph()
throws Exception
- Tests construction of the association graph for the MOF model.
- Throws:
Exception
testModelView
public void testModelView()
throws Exception
- Tests construction of a JmiModelView for the MOF model.
- Throws:
Exception
getMofModelGraph
private JmiModelGraph getMofModelGraph()
throws Exception
- Throws:
Exception
diffGraph
private <V,E> void diffGraph(org.jgrapht.DirectedGraph<V,E> graph)
throws Exception
- Throws:
Exception
dumpViewVertex
private void dumpViewVertex(PrintWriter pw,
JmiModelView view,
JmiClassVertex vertex)
dumpNamedSet
private <T> void dumpNamedSet(PrintWriter pw,
String name,
Set<T> set)
dumpList
private <T> void dumpList(PrintWriter pw,
List<T> list)