1 26 27 package net.sourceforge.groboutils.mbtf.v1.engine; 28 29 import org.easymock.EasyMock; 30 import org.easymock.MockControl; 31 import junit.framework.Test; 32 import junit.framework.TestCase; 33 import junit.framework.TestSuite; 34 35 import net.sourceforge.groboutils.mbtf.v1.IError; 36 import net.sourceforge.groboutils.mbtf.v1.IPathHistory; 37 import net.sourceforge.groboutils.mbtf.v1.TestHaltRuntimeException; 38 39 46 public class StateImplUTest extends TestCase 47 { 48 51 private static final Class THIS_CLASS = StateImplUTest.class; 52 53 public StateImplUTest( String name ) 54 { 55 super( name ); 56 } 57 58 59 62 66 protected void setUp() throws Exception 67 { 68 super.setUp(); 69 70 } 72 73 74 77 78 79 80 81 84 public void assertEquals( String msg, Object [] left, Object [] right ) 85 { 86 if (left == null) 87 { 88 assertNull( msg, right ); 89 } 90 else 91 { 92 assertNotNull( msg, right ); 93 assertEquals( msg, left.length, right.length ); 94 for (int i = left.length; ++i >= 0;) 95 { 96 assertEquals( msg, left[i], right[i] ); 97 } 98 } 99 } 100 101 104 105 public static Test suite() 106 { 107 TestSuite suite = new TestSuite( THIS_CLASS ); 108 109 120 return suite; 121 } 122 123 public static void main( String [] args ) 124 { 125 String [] name = { THIS_CLASS.getName() }; 126 127 130 junit.textui.TestRunner.main( name ); 131 } 132 133 134 138 protected void tearDown() throws Exception 139 { 140 142 super.tearDown(); 143 } 144 } 145 146 | Popular Tags |