aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Micich <josh@apache.org>2009-05-15 22:44:56 +0000
committerJosh Micich <josh@apache.org>2009-05-15 22:44:56 +0000
commit154637fc55c2cd5b5c248ac37e60fc27e3c10093 (patch)
tree245cb90335226e986f260f15ce119ae197858a87
parent07c12e09f0f74dc649bb84ded2eae12809170010 (diff)
downloadpoi-154637fc55c2cd5b5c248ac37e60fc27e3c10093.tar.gz
poi-154637fc55c2cd5b5c248ac37e60fc27e3c10093.zip
Added comments and removed unused import
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@775374 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/testcases/org/apache/poi/ss/formula/FormulaParserTestHelper.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/ss/formula/FormulaParserTestHelper.java b/src/testcases/org/apache/poi/ss/formula/FormulaParserTestHelper.java
index 9ed63390d2..970765ae5b 100644
--- a/src/testcases/org/apache/poi/ss/formula/FormulaParserTestHelper.java
+++ b/src/testcases/org/apache/poi/ss/formula/FormulaParserTestHelper.java
@@ -20,7 +20,6 @@ package org.apache.poi.ss.formula;
import junit.framework.Assert;
import junit.framework.AssertionFailedError;
-import org.apache.poi.ss.formula.FormulaParser;
import org.apache.poi.ss.formula.FormulaParser.FormulaParseException;
/**
* Avoids making {@link FormulaParseException} public
@@ -28,10 +27,18 @@ import org.apache.poi.ss.formula.FormulaParser.FormulaParseException;
* @author Josh Micich
*/
public class FormulaParserTestHelper {
+ /**
+ * @throws AssertionFailedError if <tt>e</tt> is not a formula parser exception
+ * or if the exception message doesn't match.
+ */
public static void confirmParseException(RuntimeException e, String expectedMessage) {
checkType(e);
Assert.assertEquals(expectedMessage, e.getMessage());
}
+ /**
+ * @throws AssertionFailedError if <tt>e</tt> is not a formula parser exception
+ * or if <tt>e</tt> has no message.
+ */
public static void confirmParseException(RuntimeException e) {
checkType(e);
Assert.assertNotNull(e.getMessage());