]> source.dussan.org Git - aspectj.git/commitdiff
make sure this test behaves appropriately when run outside of
authoracolyer <acolyer>
Thu, 18 Mar 2004 11:30:19 +0000 (11:30 +0000)
committeracolyer <acolyer>
Thu, 18 Mar 2004 11:30:19 +0000 (11:30 +0000)
a cruise control driven build.

bridge/testsrc/org/aspectj/bridge/VersionTest.java

index ba9b17986b5be33c78780455a95db96ea7cdf5e4..1587820c6c7b51fc1c4029d78d90fe996dc398ec 100644 (file)
@@ -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"));