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