aboutsummaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authoraclement <aclement>2004-03-05 10:14:11 +0000
committeraclement <aclement>2004-03-05 10:14:11 +0000
commit4b9195763cb06c5c3d0ce2a25f8e5b9f98446dc0 (patch)
tree6a906cd65e7d0568ec1baf7a820710c685e8b5a9 /bridge
parent5d73494d7d222b92cdbb19f860f9215a07430681 (diff)
downloadaspectj-4b9195763cb06c5c3d0ce2a25f8e5b9f98446dc0.tar.gz
aspectj-4b9195763cb06c5c3d0ce2a25f8e5b9f98446dc0.zip
Georges fix for test that verifies DEVELOPMENT build date/time stamp.
Diffstat (limited to 'bridge')
-rw-r--r--bridge/testsrc/org/aspectj/bridge/VersionTest.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/bridge/testsrc/org/aspectj/bridge/VersionTest.java b/bridge/testsrc/org/aspectj/bridge/VersionTest.java
index 079a6db2f..ba9b17986 100644
--- a/bridge/testsrc/org/aspectj/bridge/VersionTest.java
+++ b/bridge/testsrc/org/aspectj/bridge/VersionTest.java
@@ -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);
}
}