]> source.dussan.org Git - poi.git/commitdiff
Added comments and removed unused import
authorJosh Micich <josh@apache.org>
Fri, 15 May 2009 22:44:56 +0000 (22:44 +0000)
committerJosh Micich <josh@apache.org>
Fri, 15 May 2009 22:44:56 +0000 (22:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@775374 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/ss/formula/FormulaParserTestHelper.java

index 9ed63390d29bd62d43f9895cfc1f3697c7733595..970765ae5ba555e682383f1d00616710b934726a 100644 (file)
@@ -20,7 +20,6 @@ package org.apache.poi.ss.formula;
 import junit.framework.Assert;\r
 import junit.framework.AssertionFailedError;\r
 \r
-import org.apache.poi.ss.formula.FormulaParser;\r
 import org.apache.poi.ss.formula.FormulaParser.FormulaParseException;\r
 /**\r
  * Avoids making {@link FormulaParseException} public\r
@@ -28,10 +27,18 @@ import org.apache.poi.ss.formula.FormulaParser.FormulaParseException;
  * @author Josh Micich\r
  */\r
 public class FormulaParserTestHelper {\r
+       /**\r
+        * @throws AssertionFailedError  if <tt>e</tt> is not a formula parser exception \r
+        * or if the exception message doesn't match.\r
+        */\r
        public static void confirmParseException(RuntimeException e, String expectedMessage) {\r
                checkType(e);\r
                Assert.assertEquals(expectedMessage, e.getMessage());\r
        }\r
+       /**\r
+        * @throws AssertionFailedError  if <tt>e</tt> is not a formula parser exception \r
+        * or if <tt>e</tt> has no message.\r
+        */\r
        public static void confirmParseException(RuntimeException e) {\r
                checkType(e);\r
                Assert.assertNotNull(e.getMessage());\r