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 IIssueStateUTestI extends InterfaceTestCase 46 { 47 50 private static final Class THIS_CLASS = IIssueStateUTestI.class; 51 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 52 53 public IIssueStateUTestI( String name, ImplFactory f ) 54 { 55 super( name, IIssueState.class, f ); 56 } 57 58 59 public IIssueState createIIssueState() 60 { 61 return (IIssueState)createImplObject(); 62 } 63 64 65 68 69 public void testGetName1() 70 { 71 IIssueState is = createIIssueState(); 72 String name = is.getName(); 73 assertNotNull( 74 "Got null issue state name.", 75 name ); 76 } 77 78 79 public void testGetDescription1() 80 { 81 IIssueState is = createIIssueState(); 82 String desc = is.getDescription(); 83 } 84 85 86 public void testOpenClosed1() 87 { 88 IIssueState is = createIIssueState(); 89 assertEquals( 90 "Open must be opposite of closed.", 91 !is.isOpen(), 92 is.isClosed() ); 93 } 94 95 96 public void testGetAttributes1() 97 { 98 IIssueState is = createIIssueState(); 99 IAttributeSet set = is.getAttributes(); 100 assertNotNull( 101 "Got null attribute set.", 102 set ); 103 } 104 105 106 109 110 public static InterfaceTestSuite suite() 111 { 112 InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS ); 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 setUp() throws Exception 133 { 134 super.setUp(); 135 136 } 138 139 140 144 protected void tearDown() throws Exception 145 { 146 148 149 super.tearDown(); 150 } 151 } 152 153 | Popular Tags |