Author: sback
Date: 2007-07-03 23:30:44 +0000 (Tue, 03 Jul 2007)
New Revision: 13910
Modified:
trunk/freenet/test/freenet/support/TimeUtilTest.java
Log:
All tests work correctly after Zothar's bugfix #1492
Modified: trunk/freenet/test/freenet/support/TimeUtilTest.java
===================================================================
--- trunk/freenet/test/freenet/support/TimeUtilTest.java 2007-07-03
23:12:25 UTC (rev 13909)
+++ trunk/freenet/test/freenet/support/TimeUtilTest.java 2007-07-03
23:30:44 UTC (rev 13910)
@@ -11,8 +11,8 @@
* trying the biggest long value
*/
public void testFormatTime_LongIntBoolean_MaxValue() {
- // TimeUtil.formatTime(Long.MAX_VALUE,6,true);
- // it does not works correctly yet, see bug: 0001492
+ String expectedForMaxLongValue = "15250284452w3d7h12m55.807s";
+
assertEquals(TimeUtil.formatTime(Long.MAX_VALUE,6,true),expectedForMaxLongValue);
}
/**
@@ -20,8 +20,8 @@
* trying the biggest long value
*/
public void testFormatTime_LongInt() {
- // TimeUtil.formatTime(Long.MAX_VALUE,6);
- // it does not works correctly yet, see bug: 0001492
+ String expectedForMaxLongValue = "15250284452w3d7h12m55s";
+
assertEquals(TimeUtil.formatTime(Long.MAX_VALUE,6),expectedForMaxLongValue);
}
/**
@@ -29,9 +29,8 @@
* trying the biggest long value
*/
public void testFormatTime_Long() {
- // Long methodBiggestValue = Long.valueOf("9223372036854771");
//biggest value
- // TimeUtil.formatTime(methodBiggestValue.longValue());
- // it does not works correctly yet, see bug: 0001492
+ String expectedForMaxLongValue = "15250284452w3d"; //it
uses two terms by default
+
assertEquals(TimeUtil.formatTime(Long.MAX_VALUE),expectedForMaxLongValue);
}
/**