aboutsummaryrefslogtreecommitdiffstats
path: root/testing-util/src/test
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2021-05-14 08:16:29 -0700
committerAndy Clement <aclement@pivotal.io>2021-05-14 08:16:29 -0700
commitab208cde4276e58334f92f7607b31e77dde8a52d (patch)
tree2db1af39c3339ada13c058c9b85be061686f21ac /testing-util/src/test
parent1fc5195245883d306e2da3877b4fe4362ff0def9 (diff)
downloadaspectj-ab208cde4276e58334f92f7607b31e77dde8a52d.tar.gz
aspectj-ab208cde4276e58334f92f7607b31e77dde8a52d.zip
Remove jdiff
Diffstat (limited to 'testing-util/src/test')
-rw-r--r--testing-util/src/test/java/org/aspectj/testingutil/TestUtilTest.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/testing-util/src/test/java/org/aspectj/testingutil/TestUtilTest.java b/testing-util/src/test/java/org/aspectj/testingutil/TestUtilTest.java
index 1427ccc8a..6b791da43 100644
--- a/testing-util/src/test/java/org/aspectj/testingutil/TestUtilTest.java
+++ b/testing-util/src/test/java/org/aspectj/testingutil/TestUtilTest.java
@@ -81,16 +81,14 @@ public class TestUtilTest extends TestCase {
public void testFileCompareNonClassStaticNegative() throws IOException {
MessageHandler holder = new MessageHandler();
- File basedir = new File("testdata/testCompareTextFiles/differentFile");
+ File basedir = new File(UtilTests.TESTING_UTIL_PATH + "/testdata/testCompareTextFiles/differentFile");
File expectedBaseDir = new File(basedir, "expected");
File actualBaseDir = new File(basedir, "actual");
String filename = "TestUtilTest.java";
File expected = new File(expectedBaseDir, filename);
File actual = new File(actualBaseDir, filename);
-
- assertTrue(!TestUtil.sameFiles(holder, expected, actual));
-
- assertTrue(!TestUtil.sameFiles(holder, expectedBaseDir, actualBaseDir, filename));
+ assertTrue(!TestUtil.sameFiles(holder, expected, actual));
+ assertTrue(!TestUtil.sameFiles(holder, expectedBaseDir, actualBaseDir, filename));
}
public void testParseBoolean() {
@@ -127,8 +125,9 @@ public class TestUtilTest extends TestCase {
}
}
+
public void testFileCompareClass() throws IOException {
- if (!TestUtil.ClassLineator.haveDisassembler()) {
+ if (!TestUtil.haveDisassembler()) {
System.err.println("skipping testFileCompareClass - no disassembler on classpath");
return;
}