You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by st...@apache.org on 2002/09/11 21:00:53 UTC
cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang/exception NestableExceptionTestCase.java
stevencaswell 2002/09/11 12:00:52
Modified: lang/src/test/org/apache/commons/lang/exception
NestableExceptionTestCase.java
Log:
updated javadocs
Revision Changes Path
1.5 +68 -3 jakarta-commons/lang/src/test/org/apache/commons/lang/exception/NestableExceptionTestCase.java
Index: NestableExceptionTestCase.java
===================================================================
RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/exception/NestableExceptionTestCase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- NestableExceptionTestCase.java 11 Sep 2002 18:16:53 -0000 1.4
+++ NestableExceptionTestCase.java 11 Sep 2002 19:00:52 -0000 1.5
@@ -81,104 +81,162 @@
}
/**
- * 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 @@
}
+/**
+ * First nestable tester implementation for use in test cases.
+ */
class NestableExceptionTester1 extends NestableException
{
public NestableExceptionTester1()
@@ -210,6 +271,9 @@
}
+/**
+ * Second nestable tester implementation for use in test cases.
+ */
class NestableExceptionTester2 extends NestableException
{
public NestableExceptionTester2()
@@ -233,3 +297,4 @@
}
}
+
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>