1 15 16 package net.sourceforge.groboutils.junit.v1.iftc; 17 18 import junit.framework.Test; 19 import junit.framework.TestCase; 20 import junit.framework.TestSuite; 21 22 23 33 public class Sample1IUTestI extends InterfaceTestCase 34 { 35 private static final Class THIS_CLASS = Sample1IUTestI.class; 36 37 public Sample1IUTestI( String name, ImplFactory f ) { 38 super( name, Sample1.class, f ); 39 } 40 41 protected Sample1 createSample1() { 42 return (Sample1)createImplObject(); 43 } 44 45 48 public void testAddString1() { 49 Sample1 s1 = createSample1(); 50 try { 51 s1.addString( null ); 52 fail( "Did not throw IllegalArgumentException." ); 53 } catch (IllegalArgumentException e) { 54 } 56 } 57 58 public static InterfaceTestSuite suite() { 59 InterfaceTestSuite suite = 60 new InterfaceTestSuite( THIS_CLASS ); 61 return suite; 62 } 63 } 64 65 | Popular Tags |