1 26 27 package net.sourceforge.groboutils.pmti.v1; 28 29 import net.sourceforge.groboutils.util.throwable.v1.*; 30 import junit.framework.Test; 31 import junit.framework.TestCase; 32 import junit.framework.TestSuite; 33 import net.sourceforge.groboutils.autodoc.v1.AutoDoc; 34 import net.sourceforge.groboutils.junit.v1.iftc.*; 35 import junit.framework.AssertionFailedError; 36 37 38 45 public class ProblemManagerExceptionUTest extends TestCase 46 { 47 50 private static final Class THIS_CLASS = ProblemManagerExceptionUTest.class; 51 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 52 53 public ProblemManagerExceptionUTest( String name ) 54 { 55 super( name ); 56 } 57 58 59 62 63 67 protected void setUp() throws Exception 68 { 69 super.setUp(); 70 71 } 73 74 75 78 79 public void testAllTestsCoveredByInterfaceTests() 80 { 81 } 82 83 84 87 88 91 92 private static class PMEFactory 93 implements IChainableExceptionUTestI.IChainableExceptionFactory 94 { 95 public IChainableException createException() 96 { 97 return new ProblemManagerException(); 98 } 99 100 public IChainableException createException( String message ) 101 { 102 return new ProblemManagerException( message ); 103 } 104 105 public IChainableException createException( Throwable cause ) 106 { 107 return new ProblemManagerException( cause ); 108 } 109 110 public IChainableException createException( String message, 111 Throwable cause ) 112 { 113 return new ProblemManagerException( message, cause ); 114 } 115 116 public IChainableException createException( Throwable cause, 117 String message ) 118 { 119 return new ProblemManagerException( cause, message ); 120 } 121 } 122 123 124 public static Test suite() 125 { 126 InterfaceTestSuite suite = IChainableExceptionUTestI.suite(); 127 suite.addTestSuite( THIS_CLASS ); 128 suite.addFactory( new CxFactory( "A" ) { 129 public Object createImplObject() { 130 return new PMEFactory(); 131 } 132 } ); 133 134 return suite; 135 } 136 137 public static void main( String [] args ) 138 { 139 String [] name = { THIS_CLASS.getName() }; 140 141 144 junit.textui.TestRunner.main( name ); 145 } 146 147 148 152 protected void tearDown() throws Exception 153 { 154 156 157 super.tearDown(); 158 } 159 } 160 161 | Popular Tags |