1 26 27 package net.sourceforge.groboutils.pmti.v1.itf; 28 29 import net.sourceforge.groboutils.pmti.v1.*; 30 import net.sourceforge.groboutils.pmti.v1.itf.parser.*; 31 32 import org.easymock.EasyMock; 33 import org.easymock.MockControl; 34 import junit.framework.Test; 35 import junit.framework.TestCase; 36 import junit.framework.TestSuite; 37 import net.sourceforge.groboutils.autodoc.v1.*; 38 import net.sourceforge.groboutils.junit.v1.iftc.*; 39 import junit.framework.AssertionFailedError; 40 41 42 49 public class ITFReadProblemManagerUTest extends TestCase 50 { 51 54 private static final Class THIS_CLASS = ITFReadProblemManagerUTest.class; 55 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 56 57 public ITFReadProblemManagerUTest( String name ) 58 { 59 super( name ); 60 } 61 62 63 66 70 protected void setUp() throws Exception 71 { 72 super.setUp(); 73 74 } 76 77 78 81 82 public void testConstructor1() 83 { 84 try 85 { 86 new ITFReadProblemManager( (IParser[])null ); 87 fail( "Did not throw IllegalArgumentException." ); 88 } 89 catch (IllegalArgumentException e) 90 { 91 } 93 } 94 95 96 97 100 101 104 105 public static Test suite() 106 { 107 InterfaceTestSuite suite = IProblemManagerUTestI.suite(); 108 suite.addTestSuite( THIS_CLASS ); 109 suite.addFactory( new CxFactory( "A" ) { 110 public Object createImplObject() { 111 IParser[] p = new IParser[0]; 112 return new ITFReadProblemManager( p ); 113 } 114 } ); 115 116 return suite; 117 } 118 119 public static void main( String [] args ) 120 { 121 String [] name = { THIS_CLASS.getName() }; 122 123 126 junit.textui.TestRunner.main( name ); 127 } 128 129 130 134 protected void tearDown() throws Exception 135 { 136 138 139 super.tearDown(); 140 } 141 } 142 143 | Popular Tags |