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 DefaultListAttributeUTest extends TestCase 49 { 50 53 private static final Class THIS_CLASS = DefaultListAttributeUTest.class; 54 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 55 56 public DefaultListAttributeUTest( 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 DefaultListAttribute( 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 = IListAttributeUTestI.suite(); 107 suite.addTestSuite( THIS_CLASS ); 108 suite.addFactory( new CxFactory( "A" ) { 109 public Object createImplObject() { 110 Object vals[] = {}; 111 Class c[] = {}; 112 IAttributeInfo info = new DefaultAttributeInfo( "a", null, c ); 113 return new DefaultListAttribute( vals, info ); 114 } 115 } ); 116 117 return suite; 118 } 119 120 public static void main( String [] args ) 121 { 122 String [] name = { THIS_CLASS.getName() }; 123 124 127 junit.textui.TestRunner.main( name ); 128 } 129 130 131 135 protected void tearDown() throws Exception 136 { 137 139 140 super.tearDown(); 141 } 142 } 143 144 | Popular Tags |