From 8890217addb4b53ecb2728376917c68d952f94c2 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 17 Oct 2007 08:15:36 +0000 Subject: tests update so works ok on mac/linux --- ajde.core/testsrc/org/aspectj/ajde/core/tests/InpathTests.java | 4 ++-- ajde.core/testsrc/org/aspectj/ajde/core/tests/ResourceCopyTests.java | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'ajde.core/testsrc') diff --git a/ajde.core/testsrc/org/aspectj/ajde/core/tests/InpathTests.java b/ajde.core/testsrc/org/aspectj/ajde/core/tests/InpathTests.java index 4bcd6d1af..d634dcd2b 100644 --- a/ajde.core/testsrc/org/aspectj/ajde/core/tests/InpathTests.java +++ b/ajde.core/testsrc/org/aspectj/ajde/core/tests/InpathTests.java @@ -254,8 +254,8 @@ public class InpathTests extends AjdeCoreTestCase { try { assertTrue( - "outjar older than injar", - (outjarFile.lastModified() > dirFile.lastModified())); + "outjar older than injar: outjarLastMod="+outjarFile.lastModified()+" injarLastMod="+dirFile.lastModified(), + (outjarFile.lastModified() >= dirFile.lastModified())); // Go through the output jar file, for each element, remove it from // the expectedOutputJarContents - when we finish, the expectedOutputJarContents diff --git a/ajde.core/testsrc/org/aspectj/ajde/core/tests/ResourceCopyTests.java b/ajde.core/testsrc/org/aspectj/ajde/core/tests/ResourceCopyTests.java index 84f21a405..422e194e0 100644 --- a/ajde.core/testsrc/org/aspectj/ajde/core/tests/ResourceCopyTests.java +++ b/ajde.core/testsrc/org/aspectj/ajde/core/tests/ResourceCopyTests.java @@ -201,7 +201,9 @@ public class ResourceCopyTests extends AjdeCoreTestCase { HashSet resources = new HashSet(); try { - assertTrue("outjar older than injar",(outjarFile.lastModified() > injarFile.lastModified())); + assertTrue( + "outjar older than injar: outjarLastMod="+outjarFile.lastModified()+" injarLastMod="+injarFile.lastModified(), + (outjarFile.lastModified() >= injarFile.lastModified())); byte[] inManifest = listJarResources(injarFile,resources); listSourceResources(indirName,resources); -- cgit v1.2.3