]> source.dussan.org Git - aspectj.git/commitdiff
Georges fix for test that verifies DEVELOPMENT build date/time stamp.
authoraclement <aclement>
Fri, 5 Mar 2004 10:14:11 +0000 (10:14 +0000)
committeraclement <aclement>
Fri, 5 Mar 2004 10:14:11 +0000 (10:14 +0000)
bridge/testsrc/org/aspectj/bridge/VersionTest.java

index 079a6db2f2e1ca6d47f5e24c0e503d169538190f..ba9b17986b5be33c78780455a95db96ea7cdf5e4 100644 (file)
@@ -43,14 +43,10 @@ public class VersionTest extends TestCase {
        }
         
     public void testVersion() {
-        if (Version.DEVELOPMENT.equals(Version.text)) {
-            assertEquals(Version.time, Version.NOTIME);
-        } else {
-            Date date = new Date(Version.time);
-            SimpleDateFormat format = new SimpleDateFormat(Version.SIMPLE_DATE_FORMAT, Locale.US);
-            format.setTimeZone(TimeZone.getTimeZone("America/Los_Angeles"));
-            String timeString = format.format(date);
-            assertEquals(Version.time_text, timeString);
-        }
+        Date date = new Date(Version.time);
+        SimpleDateFormat format = new SimpleDateFormat(Version.SIMPLE_DATE_FORMAT, Locale.UK);
+        format.setTimeZone(TimeZone.getTimeZone("GMT"));
+        String timeString = format.format(date);
+        assertEquals(Version.time_text, timeString);
     }
 }