From: acolyer Date: Thu, 18 Mar 2004 11:30:19 +0000 (+0000) Subject: make sure this test behaves appropriately when run outside of X-Git-Tag: Root_ajdt_support~106 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d91b72e7016a1ebbc3363fe8a57ec61c012deb99;p=aspectj.git make sure this test behaves appropriately when run outside of a cruise control driven build. --- diff --git a/bridge/testsrc/org/aspectj/bridge/VersionTest.java b/bridge/testsrc/org/aspectj/bridge/VersionTest.java index ba9b17986..1587820c6 100644 --- a/bridge/testsrc/org/aspectj/bridge/VersionTest.java +++ b/bridge/testsrc/org/aspectj/bridge/VersionTest.java @@ -43,6 +43,7 @@ public class VersionTest extends TestCase { } public void testVersion() { + if (Version.time_text.equals("")) return; // dev build, we can only test this on the build server. Date date = new Date(Version.time); SimpleDateFormat format = new SimpleDateFormat(Version.SIMPLE_DATE_FORMAT, Locale.UK); format.setTimeZone(TimeZone.getTimeZone("GMT"));