1 26 27 package net.sourceforge.groboutils.pmti.v1; 28 29 import net.sourceforge.groboutils.autodoc.v1.AutoDoc; 30 import org.easymock.EasyMock; 31 import org.easymock.MockControl; 32 import net.sourceforge.groboutils.junit.v1.iftc.*; 33 import junit.framework.Test; 34 import junit.framework.TestCase; 35 import junit.framework.TestSuite; 36 37 38 45 public class IAttributeUTestI extends InterfaceTestCase 46 { 47 50 private static final Class THIS_CLASS = IAttributeUTestI.class; 51 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 52 53 public IAttributeUTestI( String name, ImplFactory f ) 54 { 55 super( name, IAttribute.class, f ); 56 } 57 58 59 public IAttribute createIAttribute() 60 { 61 return (IAttribute)createImplObject(); 62 } 63 64 65 68 69 public void testGetValue1() 70 { 71 IAttribute att = createIAttribute(); 72 Object v = att.getValue(); 73 } 74 75 76 public void testGetInfo1() 77 { 78 IAttribute att = createIAttribute(); 79 IAttributeInfo ai = att.getInfo(); 80 assertNotNull( 81 "Null attribute info.", 82 ai ); 83 } 84 85 86 89 90 public static InterfaceTestSuite suite() 91 { 92 InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS ); 93 94 return suite; 95 } 96 97 public static void main( String [] args ) 98 { 99 String [] name = { THIS_CLASS.getName() }; 100 101 104 junit.textui.TestRunner.main( name ); 105 } 106 107 108 112 protected void setUp() throws Exception 113 { 114 super.setUp(); 115 116 } 118 119 120 124 protected void tearDown() throws Exception 125 { 126 128 129 super.tearDown(); 130 } 131 } 132 133 | Popular Tags |