updated javadocs

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137009 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Caswell 2002-09-11 19:04:26 +00:00
parent 0acf0a6f35
commit d1b1006b66
3 changed files with 145 additions and 7 deletions

View File

@ -62,7 +62,7 @@ import junit.textui.TestRunner;
* Tests the org.apache.commons.lang.exception.NestableError class.
*
* @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
* @version $Id: NestableErrorTestCase.java,v 1.1 2002/09/11 18:17:23 stevencaswell Exp $
* @version $Id: NestableErrorTestCase.java,v 1.2 2002/09/11 18:58:05 stevencaswell Exp $
*/
public class NestableErrorTestCase extends AbstractNestableTestCase
{
@ -104,6 +104,8 @@ public class NestableErrorTestCase extends AbstractNestableTestCase
/**
* Command line entry point for running the test suite.
*
* @param args array of command line arguments
*/
public static void main(String args[])
{
@ -240,6 +242,9 @@ public class NestableErrorTestCase extends AbstractNestableTestCase
}
/**
* First nestable tester implementation for use in test cases.
*/
class NestableErrorTester1 extends NestableError
{
public NestableErrorTester1()
@ -264,6 +269,9 @@ class NestableErrorTester1 extends NestableError
}
/**
* Second nestable tester implementation for use in test cases.
*/
class NestableErrorTester2 extends NestableError
{
public NestableErrorTester2()

View File

@ -64,7 +64,7 @@ import junit.textui.TestRunner;
* Tests the org.apache.commons.lang.exception.NestableException class.
*
* @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
* @version $Id: NestableExceptionTestCase.java,v 1.4 2002/09/11 18:16:53 stevencaswell Exp $
* @version $Id: NestableExceptionTestCase.java,v 1.5 2002/09/11 19:00:52 stevencaswell Exp $
*/
public class NestableExceptionTestCase extends AbstractNestableTestCase
{
@ -81,104 +81,162 @@ public class NestableExceptionTestCase extends AbstractNestableTestCase
}
/**
* Set up instance variables required by this test case.
* Sets up instance variables required by this test case.
*/
public void setUp()
{
}
/**
* Returns the test suite
*
* @return the test suite
*/
public static Test suite()
{
return new TestSuite(NestableExceptionTestCase.class);
}
/**
* Tear down instance variables required by this test case.
* Tears down instance variables required by this test case.
*/
public void tearDown()
{
}
/**
* Command line entry point for running the test suite.
*
* @param args array of command line arguments
*/
public static void main(String args[])
{
TestRunner.run(suite());
}
/**
* @see AbstractNestableTestCase#getNestable()
*/
public Nestable getNestable()
{
return new NestableException();
}
/**
* @see AbstractNestableTestCase#getNestable(Nestable)
*/
public Nestable getNestable(Nestable n)
{
return new NestableException((Throwable) n);
}
/**
* @see AbstractNestableTestCase#getNestable(String)
*/
public Nestable getNestable(String msg)
{
return new NestableException(msg);
}
/**
* @see AbstractNestableTestCase#getNestable(Throwable)
*/
public Nestable getNestable(Throwable t)
{
return new NestableException(t);
}
/**
* @see AbstractNestableTestCase#getNestable(String, Throwable)
*/
public Nestable getNestable(String msg, Throwable t)
{
return new NestableException(msg, t);
}
/**
* @see AbstractNestableTestCase#getNestable(String, Nestable)
*/
public Nestable getNestable(String msg, Nestable n)
{
return new NestableException(msg, (Throwable) n);
}
/**
* @see AbstractNestableTestCase#getTester1(Throwable)
*/
public Nestable getTester1(Throwable t)
{
return new NestableExceptionTester1(t);
}
/**
* @see AbstractNestableTestCase#getTester1(Nestable)
*/
public Nestable getTester1(Nestable n)
{
return new NestableExceptionTester1((Throwable) n);
}
/**
* @see AbstractNestableTestCase#getTester1(String, Throwable)
*/
public Nestable getTester1(String msg, Throwable t)
{
return new NestableExceptionTester1(msg, t);
}
/**
* @see AbstractNestableTestCase#getTester1(String, Nestable)
*/
public Nestable getTester1(String msg, Nestable n)
{
return new NestableExceptionTester1(msg, (Throwable) n);
}
/**
* @see AbstractNestableTestCase#getTester1Class()
*/
public Class getTester1Class()
{
return NestableExceptionTester1.class;
}
/**
* @see AbstractNestableTestCase#getTester2(String, Throwable)
*/
public Nestable getTester2(String msg, Throwable t)
{
return new NestableExceptionTester2(msg, t);
}
/**
* @see AbstractNestableTestCase#getTester2(String, Nestable)
*/
public Nestable getTester2(String msg, Nestable n)
{
return new NestableExceptionTester2(msg, (Throwable) n);
}
/**
* @see AbstractNestableTestCase#getTester2Class()
*/
public Class getTester2Class()
{
return NestableExceptionTester2.class;
}
/**
* @see AbstractNestableTestCase#getThrowable(String)
*/
public Throwable getThrowable(String msg)
{
return new Exception(msg);
}
/**
* @see AbstractNestableTestCase#getThrowableClass()
*/
public Class getThrowableClass()
{
return Exception.class;
@ -186,6 +244,9 @@ public class NestableExceptionTestCase extends AbstractNestableTestCase
}
/**
* First nestable tester implementation for use in test cases.
*/
class NestableExceptionTester1 extends NestableException
{
public NestableExceptionTester1()
@ -210,6 +271,9 @@ class NestableExceptionTester1 extends NestableException
}
/**
* Second nestable tester implementation for use in test cases.
*/
class NestableExceptionTester2 extends NestableException
{
public NestableExceptionTester2()
@ -233,3 +297,4 @@ class NestableExceptionTester2 extends NestableException
}
}

View File

@ -64,7 +64,7 @@ import junit.textui.TestRunner;
* Tests the org.apache.commons.lang.exception.NestableRuntimeException class.
*
* @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
* @version $Id: NestableRuntimeExceptionTestCase.java,v 1.4 2002/09/11 18:16:53 stevencaswell Exp $
* @version $Id: NestableRuntimeExceptionTestCase.java,v 1.5 2002/09/11 19:04:26 stevencaswell Exp $
*/
public class NestableRuntimeExceptionTestCase extends AbstractNestableTestCase
{
@ -81,104 +81,162 @@ public class NestableRuntimeExceptionTestCase extends AbstractNestableTestCase
}
/**
* Set up instance variables required by this test case.
* Sets up instance variables required by this test case.
*/
public void setUp()
{
}
/**
* Returns the test suite
*
* @return the test suite
*/
public static Test suite()
{
return new TestSuite(NestableExceptionTestCase.class);
}
/**
* Tear down instance variables required by this test case.
* Tears down instance variables required by this test case.
*/
public void tearDown()
{
}
/**
* Command line entry point for running the test suite.
*
* @param args array of command line arguments
*/
public static void main(String args[])
{
TestRunner.run(suite());
}
/**
* @see AbstractNestableTestCase#getNestable()
*/
public Nestable getNestable()
{
return new NestableRuntimeException();
}
/**
* @see AbstractNestableTestCase#getNestable(Nestable)
*/
public Nestable getNestable(Nestable n)
{
return new NestableRuntimeException((Throwable) n);
}
/**
* @see AbstractNestableTestCase#getNestable(String)
*/
public Nestable getNestable(String msg)
{
return new NestableRuntimeException(msg);
}
/**
* @see AbstractNestableTestCase#getNestable(Throwable)
*/
public Nestable getNestable(Throwable t)
{
return new NestableRuntimeException(t);
}
/**
* @see AbstractNestableTestCase#getNestable(String, Throwable)
*/
public Nestable getNestable(String msg, Throwable t)
{
return new NestableRuntimeException(msg, t);
}
/**
* @see AbstractNestableTestCase#getNestable(String, Nestable)
*/
public Nestable getNestable(String msg, Nestable n)
{
return new NestableRuntimeException(msg, (Throwable) n);
}
/**
* @see AbstractNestableTestCase#getTester1(Throwable)
*/
public Nestable getTester1(Throwable t)
{
return new NestableRuntimeExceptionTester1(t);
}
/**
* @see AbstractNestableTestCase#getTester1(Nestable)
*/
public Nestable getTester1(Nestable n)
{
return new NestableRuntimeExceptionTester1((Throwable) n);
}
/**
* @see AbstractNestableTestCase#getTester1(String, Throwable)
*/
public Nestable getTester1(String msg, Throwable t)
{
return new NestableRuntimeExceptionTester1(msg, t);
}
/**
* @see AbstractNestableTestCase#getTester1(String, Nestable)
*/
public Nestable getTester1(String msg, Nestable n)
{
return new NestableRuntimeExceptionTester1(msg, (Throwable) n);
}
/**
* @see AbstractNestableTestCase#getTester1Class()
*/
public Class getTester1Class()
{
return NestableRuntimeExceptionTester1.class;
}
/**
* @see AbstractNestableTestCase#getTester2(String, Throwable)
*/
public Nestable getTester2(String msg, Throwable t)
{
return new NestableRuntimeExceptionTester2(msg, t);
}
/**
* @see AbstractNestableTestCase#getTester2(String, Nestable)
*/
public Nestable getTester2(String msg, Nestable n)
{
return new NestableRuntimeExceptionTester1(msg, (Throwable) n);
}
/**
* @see AbstractNestableTestCase#getTester2Class()
*/
public Class getTester2Class()
{
return NestableRuntimeExceptionTester2.class;
}
/**
* @see AbstractNestableTestCase#getThrowable(String)
*/
public Throwable getThrowable(String msg)
{
return new RuntimeException(msg);
}
/**
* @see AbstractNestableTestCase#getThrowableClass()
*/
public Class getThrowableClass()
{
return RuntimeException.class;
@ -186,6 +244,9 @@ public class NestableRuntimeExceptionTestCase extends AbstractNestableTestCase
}
/**
* First nestable tester implementation for use in test cases.
*/
class NestableRuntimeExceptionTester1 extends NestableRuntimeException
{
public NestableRuntimeExceptionTester1()
@ -210,6 +271,9 @@ class NestableRuntimeExceptionTester1 extends NestableRuntimeException
}
/**
* Second nestable tester implementation.
*/
class NestableRuntimeExceptionTester2 extends NestableRuntimeException
{
public NestableRuntimeExceptionTester2()
@ -233,3 +297,4 @@ class NestableRuntimeExceptionTester2 extends NestableRuntimeException
}
}