Author: bayard Date: Tue Sep 19 01:18:02 2006 New Revision: 447778 URL: http://svn.apache.org/viewvc?view=rev&rev=447778 Log: #LANG-59 fails under JDK 1.3, so much as with the earlier code in this class, I've modified it so that it only runs with 1.4 and above. A warning is output, and I improved the other warning message at the same time.
Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java?view=diff&rev=447778&r1=447777&r2=447778 ============================================================================== --- jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java (original) +++ jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DateUtilsTest.java Tue Sep 19 01:18:02 2006 @@ -686,7 +686,7 @@ dateTimeParser.parse("March 30, 2003 04:00:00.000"), DateUtils.round((Object) cal7, Calendar.HOUR_OF_DAY)); } else { - this.warn("Some date rounding tests not run since the current version is " + SystemUtils.JAVA_VERSION); + this.warn("WARNING: Some date rounding tests not run since the current version is " + SystemUtils.JAVA_VERSION); } TimeZone.setDefault(defaultZone); dateTimeParser.setTimeZone(defaultZone); @@ -889,6 +889,10 @@ * see http://issues.apache.org/jira/browse/LANG-59 */ public void testTruncateLang59() throws Exception { + if (!SystemUtils.isJavaVersionAtLeast(1.4f)) { + this.warn("WARNING: Test for LANG-59 not run since the current version is " + SystemUtils.JAVA_VERSION); + return; + } // Set TimeZone to Mountain Time TimeZone MST_MDT = TimeZone.getTimeZone("MST7MDT"); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]