1 26 27 package net.sourceforge.groboutils.pmti.v1.itf; 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 ITestIssueRecordWriterUTestI extends InterfaceTestCase 46 { 47 50 private static final Class THIS_CLASS = ITestIssueRecordWriterUTestI.class; 51 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 52 53 public ITestIssueRecordWriterUTestI( String name, ImplFactory f ) 54 { 55 super( name, ITestIssueRecordWriter.class, f ); 56 } 57 58 59 public ITestIssueRecordWriter createITestIssueRecordWriter() 60 { 61 return (ITestIssueRecordWriter)createImplObject(); 62 } 63 64 65 68 69 public void testWrite1() throws Exception 70 { 71 ITestIssueRecordWriter tirw = createITestIssueRecordWriter(); 72 try 73 { 74 tirw.write( null, null ); 75 } 77 catch (IllegalArgumentException iae) 78 { 79 } 81 catch (NullPointerException npe) 82 { 83 } 85 } 86 87 88 89 92 93 public static InterfaceTestSuite suite() 94 { 95 InterfaceTestSuite suite = new InterfaceTestSuite( THIS_CLASS ); 96 97 return suite; 98 } 99 100 public static void main( String [] args ) 101 { 102 String [] name = { THIS_CLASS.getName() }; 103 104 107 junit.textui.TestRunner.main( name ); 108 } 109 110 111 115 protected void setUp() throws Exception 116 { 117 super.setUp(); 118 119 } 121 122 123 127 protected void tearDown() throws Exception 128 { 129 131 132 super.tearDown(); 133 } 134 } 135 136 | Popular Tags |