1 26 27 package net.sourceforge.groboutils.pmti.v1.itf.impl; 28 29 import net.sourceforge.groboutils.pmti.v1.itf.*; 30 31 import org.easymock.EasyMock; 32 import org.easymock.MockControl; 33 import junit.framework.Test; 34 import junit.framework.TestCase; 35 import junit.framework.TestSuite; 36 import net.sourceforge.groboutils.autodoc.v1.*; 37 import net.sourceforge.groboutils.junit.v1.iftc.*; 38 import junit.framework.AssertionFailedError; 39 40 41 48 public class ImmutableTestRecordUTest extends TestCase 49 { 50 53 private static final Class THIS_CLASS = ImmutableTestRecordUTest.class; 54 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 55 56 public ImmutableTestRecordUTest( String name ) 57 { 58 super( name ); 59 } 60 61 62 65 69 protected void setUp() throws Exception 70 { 71 super.setUp(); 72 73 } 75 76 77 80 81 public void testConstructor1() 82 { 83 try 84 { 85 new ImmutableTestRecord( null ); 86 fail( "Did not throw IllegalArgumentException." ); 87 } 88 catch (IllegalArgumentException iae) 89 { 90 } 92 } 93 94 95 96 99 100 103 104 public static Test suite() 105 { 106 InterfaceTestSuite suite = ITestRecordUTestI.suite(); 107 suite.addTestSuite( THIS_CLASS ); 108 suite.addFactory( new CxFactory( "A" ) { 109 public Object createImplObject() { 110 return new ImmutableTestRecord(); 111 } 112 } ); 113 114 return suite; 115 } 116 117 public static void main( String [] args ) 118 { 119 String [] name = { THIS_CLASS.getName() }; 120 121 124 junit.textui.TestRunner.main( name ); 125 } 126 127 128 132 protected void tearDown() throws Exception 133 { 134 136 137 super.tearDown(); 138 } 139 } 140 141 | Popular Tags |