diff --git a/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java b/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java index cf7becf28..b95c26e08 100644 --- a/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java +++ b/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java @@ -326,7 +326,7 @@ public class DurationFormatUtilsTest extends TestCase { new DurationFormatUtils.Token( new Object() ) ) ); assertFalse( "Token equal to Token with different count. ", token.equals( - new DurationFormatUtils.Token( new Object(), 1 ) + new DurationFormatUtils.Token( DurationFormatUtils.y, 1 ) ) ); DurationFormatUtils.Token numToken = new DurationFormatUtils.Token( new Integer(1), 4 ); assertTrue( "Token with Number value not equal to itself. ", numToken.equals( numToken ) );