cc.mallet.grmm.test
Class TestUndirectedModel

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by cc.mallet.grmm.test.TestUndirectedModel
All Implemented Interfaces:
junit.framework.Test

public class TestUndirectedModel
extends junit.framework.TestCase

Created: Mar 17, 2005

Version:
$Id: TestUndirectedModel.java,v 1.1 2007/10/22 21:37:41 mccallum Exp $
Author:
Constructor Summary
TestUndirectedModel(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
static junit.framework.Test suite()
           
 void testFactorOfSet()
           
 void testMdlToGraph()
           
 void testMultipleEdgePotentials()
          Tests that models can be created that have multiple factors over the same edge, and that potentialOfEdge returns the product in that case.
 void testMultipleNodePotentials()
          Tests that models can be created that have multiple factors over the same variable, and that potentialOfVertex returns the product in that case.
 void testOutputToDot()
           
 void testPotentialConnections()
           
 void testThreeNodeModel()
           
 void testUndirectedCaches()
           
 void testUndirectedCachesAfterRemove()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestUndirectedModel

public TestUndirectedModel(java.lang.String name)
Method Detail

testOutputToDot

public void testOutputToDot()
                     throws java.io.IOException
Throws:
java.io.IOException

testMultipleNodePotentials

public void testMultipleNodePotentials()
Tests that models can be created that have multiple factors over the same variable, and that potentialOfVertex returns the product in that case.


testMultipleEdgePotentials

public void testMultipleEdgePotentials()
Tests that models can be created that have multiple factors over the same edge, and that potentialOfEdge returns the product in that case.


testPotentialConnections

public void testPotentialConnections()

testThreeNodeModel

public void testThreeNodeModel()

testUndirectedCaches

public void testUndirectedCaches()

testUndirectedCachesAfterRemove

public void testUndirectedCachesAfterRemove()

testMdlToGraph

public void testMdlToGraph()

testFactorOfSet

public void testFactorOfSet()

suite

public static junit.framework.Test suite()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Throwable
Throws:
java.lang.Throwable