1 26 27 package net.sourceforge.groboutils.pmti.v1.itf.impl; 28 29 import net.sourceforge.groboutils.pmti.v1.itf.*; 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 DefaultTestIssueRecordSetUTest extends TestCase 49 { 50 53 private static final Class THIS_CLASS = DefaultTestIssueRecordSetUTest.class; 54 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 55 56 public DefaultTestIssueRecordSetUTest( 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 new DefaultTestIssueRecordSet( null ); 84 } 85 86 87 88 91 92 95 96 public static Test suite() 97 { 98 InterfaceTestSuite suite = ITestIssueRecordSetUTestI.suite(); 99 suite.addTestSuite( THIS_CLASS ); 100 suite.addFactory( new CxFactory( "A" ) { 101 public Object createImplObject() { 102 ITestIssueRecord[] tir = null; 103 return new DefaultTestIssueRecordSet( tir ); 104 } 105 } ); 106 suite.addFactory( new CxFactory( "B" ) { 107 public Object createImplObject() { 108 ITestIssueRecord[] tir = new ITestIssueRecord[0]; 109 return new DefaultTestIssueRecordSet( tir ); 110 } 111 } ); 112 suite.addFactory( new CxFactory( "C" ) { 113 public Object createImplObject() { 114 ITestIssueRecord[] tir = { 115 new DefaultTestIssueRecord( 116 new DefaultIssueRecord( "1", null ), 117 new DefaultTestRecord(), 118 null ), 119 }; 120 return new DefaultTestIssueRecordSet( tir ); 121 } 122 } ); 123 124 return suite; 125 } 126 127 public static void main( String [] args ) 128 { 129 String [] name = { THIS_CLASS.getName() }; 130 131 134 junit.textui.TestRunner.main( name ); 135 } 136 137 138 142 protected void tearDown() throws Exception 143 { 144 146 147 super.tearDown(); 148 } 149 } 150 151 | Popular Tags |