1 26 27 package net.sourceforge.groboutils.pmti.v1.itf.impl; 28 29 import net.sourceforge.groboutils.pmti.v1.*; 30 import net.sourceforge.groboutils.pmti.v1.itf.*; 31 32 import org.easymock.EasyMock; 33 import org.easymock.MockControl; 34 import junit.framework.Test; 35 import junit.framework.TestCase; 36 import junit.framework.TestSuite; 37 import net.sourceforge.groboutils.autodoc.v1.*; 38 import net.sourceforge.groboutils.junit.v1.iftc.*; 39 import junit.framework.AssertionFailedError; 40 41 42 49 public class IssueTestIssueRecordCollatorUTest extends TestCase 50 { 51 54 private static final Class THIS_CLASS = 55 IssueTestIssueRecordCollatorUTest.class; 56 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 57 58 public IssueTestIssueRecordCollatorUTest( String name ) 59 { 60 super( name ); 61 } 62 63 64 67 71 protected void setUp() throws Exception 72 { 73 super.setUp(); 74 75 } 77 78 79 82 83 public void testGetFactor1() 84 { 85 IssueTestIssueRecordCollator itirc = 86 new IssueTestIssueRecordCollator(); 87 ITestIssueRecord tir = new DefaultTestIssueRecord( 88 new DefaultIssueRecord( "1", null ), 89 new DefaultTestRecord(), 90 null ); 91 assertEquals( 92 "Did not return correct factor.", 93 "1", 94 itirc.getFactor( tir ) ); 95 } 96 97 98 99 100 103 104 107 108 public static Test suite() 109 { 110 InterfaceTestSuite suite = AbstractTestIssueRecordCollatorUTestI.suite(); 111 suite.addTestSuite( THIS_CLASS ); 112 suite.addFactory( new CxFactory( "A" ) { 113 public Object createImplObject() { 114 return new IssueTestIssueRecordCollator(); 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 |