commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1671685 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
Date Mon, 06 Apr 2015 20:10:02 GMT
Author: britter
Date: Mon Apr  6 20:10:01 2015
New Revision: 1671685

URL: http://svn.apache.org/r1671685
Log:
Remove unnecessary assignment

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java?rev=1671685&r1=1671684&r2=1671685&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
Mon Apr  6 20:10:01 2015
@@ -491,7 +491,7 @@ public class DateUtilsTest {
         assertDate(result, 2000, 1, 5, 4, 3, 2, 1);
 
         try {
-            result = DateUtils.setMonths(BASE_DATE, 12);
+            DateUtils.setMonths(BASE_DATE, 12);
             fail("DateUtils.setMonths did not throw an expected IllegalArgumentException.");
         } catch (final IllegalArgumentException e) {
 
@@ -512,7 +512,7 @@ public class DateUtilsTest {
         assertDate(result, 2000, 6, 29, 4, 3, 2, 1);
 
         try {
-            result = DateUtils.setDays(BASE_DATE, 32);
+            DateUtils.setDays(BASE_DATE, 32);
             fail("DateUtils.setDays did not throw an expected IllegalArgumentException.");
         } catch (final IllegalArgumentException e) {
 
@@ -533,7 +533,7 @@ public class DateUtilsTest {
         assertDate(result, 2000, 6, 5, 23, 3, 2, 1);
 
         try {
-            result = DateUtils.setHours(BASE_DATE, 24);
+            DateUtils.setHours(BASE_DATE, 24);
             fail("DateUtils.setHours did not throw an expected IllegalArgumentException.");
         } catch (final IllegalArgumentException e) {
 
@@ -554,7 +554,7 @@ public class DateUtilsTest {
         assertDate(result, 2000, 6, 5, 4, 59, 2, 1);
 
         try {
-            result = DateUtils.setMinutes(BASE_DATE, 60);
+            DateUtils.setMinutes(BASE_DATE, 60);
             fail("DateUtils.setMinutes did not throw an expected IllegalArgumentException.");
         } catch (final IllegalArgumentException e) {
 
@@ -575,7 +575,7 @@ public class DateUtilsTest {
         assertDate(result, 2000, 6, 5, 4, 3, 59, 1);
 
         try {
-            result = DateUtils.setSeconds(BASE_DATE, 60);
+            DateUtils.setSeconds(BASE_DATE, 60);
             fail("DateUtils.setSeconds did not throw an expected IllegalArgumentException.");
         } catch (final IllegalArgumentException e) {
 
@@ -596,7 +596,7 @@ public class DateUtilsTest {
         assertDate(result, 2000, 6, 5, 4, 3, 2, 999);
 
         try {
-            result = DateUtils.setMilliseconds(BASE_DATE, 1000);
+            DateUtils.setMilliseconds(BASE_DATE, 1000);
             fail("DateUtils.setMilliseconds did not throw an expected IllegalArgumentException.");
         } catch (final IllegalArgumentException e) {
 



Mime
View raw message