1 26 27 package net.sourceforge.groboutils.pmti.v1.defimpl; 28 29 import net.sourceforge.groboutils.pmti.v1.*; 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 DefaultAttributeInfoUTest extends TestCase 49 { 50 53 private static final Class THIS_CLASS = DefaultAttributeInfoUTest.class; 54 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 55 56 public DefaultAttributeInfoUTest( 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 DefaultAttributeInfo( null, null, 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 = IAttributeInfoUTestI.suite(); 107 suite.addTestSuite( THIS_CLASS ); 108 suite.addFactory( new CxFactory( "A" ) { 109 public Object createImplObject() { 110 Class c[] = {}; 111 return new DefaultAttributeInfo( "a", null, c ); 112 } 113 } ); 114 115 return suite; 116 } 117 118 public static void main( String [] args ) 119 { 120 String [] name = { THIS_CLASS.getName() }; 121 122 125 junit.textui.TestRunner.main( name ); 126 } 127 128 129 133 protected void tearDown() throws Exception 134 { 135 137 138 super.tearDown(); 139 } 140 } 141 142 | Popular Tags |