Repository: commons-lang
Updated Branches:
  refs/heads/master 3aface958 -> 2c437a12b


The declared exception ParseException is not actually thrown.

Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/2c437a12
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/2c437a12
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/2c437a12

Branch: refs/heads/master
Commit: 2c437a12bbc578442daaef85ab486d1e55763853
Parents: 3aface9
Author: Gary Gregory <ggreg...@apache.org>
Authored: Wed Nov 16 16:28:55 2016 -0800
Committer: Gary Gregory <ggreg...@apache.org>
Committed: Wed Nov 16 16:28:55 2016 -0800

----------------------------------------------------------------------
 .../commons/lang3/time/FastDateParser_MoreOrLessTest.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/2c437a12/src/test/java/org/apache/commons/lang3/time/FastDateParser_MoreOrLessTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/lang3/time/FastDateParser_MoreOrLessTest.java
 
b/src/test/java/org/apache/commons/lang3/time/FastDateParser_MoreOrLessTest.java
index 2b7c414..16c70ed 100644
--- 
a/src/test/java/org/apache/commons/lang3/time/FastDateParser_MoreOrLessTest.java
+++ 
b/src/test/java/org/apache/commons/lang3/time/FastDateParser_MoreOrLessTest.java
@@ -31,7 +31,7 @@ public class FastDateParser_MoreOrLessTest {
     private static final TimeZone NEW_YORK = 
TimeZone.getTimeZone("America/New_York");
     
     @Test
-    public void testInputHasPrecedingCharacters() throws ParseException {
+    public void testInputHasPrecedingCharacters() {
         final FastDateParser parser = new FastDateParser("MM/dd", 
TimeZone.getDefault(), Locale.getDefault());
         final ParsePosition parsePosition = new ParsePosition(0);
         final Date date = parser.parse("A 3/23/61", parsePosition);
@@ -41,7 +41,7 @@ public class FastDateParser_MoreOrLessTest {
     }
 
     @Test
-    public void testInputHasWhitespace() throws ParseException {
+    public void testInputHasWhitespace() {
         final FastDateParser parser = new FastDateParser("M/d/y", 
TimeZone.getDefault(), Locale.getDefault());
         //SimpleDateFormat parser = new SimpleDateFormat("M/d/y");
         final ParsePosition parsePosition = new ParsePosition(0);
@@ -56,7 +56,7 @@ public class FastDateParser_MoreOrLessTest {
     }
 
     @Test
-    public void testInputHasMoreCharacters() throws ParseException {
+    public void testInputHasMoreCharacters() {
         final FastDateParser parser = new FastDateParser("MM/dd", 
TimeZone.getDefault(), Locale.getDefault());
         final ParsePosition parsePosition = new ParsePosition(0);
         final Date date = parser.parse("3/23/61", parsePosition);
@@ -99,7 +99,7 @@ public class FastDateParser_MoreOrLessTest {
     }
     
     @Test
-    public void testInputHasWrongDay() throws ParseException {
+    public void testInputHasWrongDay() {
         final FastDateParser parser = new FastDateParser("EEEE, MM/dd/yyy", 
NEW_YORK, Locale.US);
         final String input = "Thursday, 03/23/61";
         final ParsePosition parsePosition = new ParsePosition(0);

Reply via email to