aboutsummaryrefslogtreecommitdiff
path: root/test/bytecode/src/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-03-05 07:55:40 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-03-05 08:06:46 +0100
commitf8c16ed8ac69d0106a845ca96573557700b6f39d (patch)
treed4170a71775dbeb13e58aa87585dabc9ab9f6c4f /test/bytecode/src/lombok
parenteebc5f4e851a4ce6f2775ebaf6e74794480da0b9 (diff)
downloadlombok-f8c16ed8ac69d0106a845ca96573557700b6f39d.tar.gz
lombok-f8c16ed8ac69d0106a845ca96573557700b6f39d.tar.bz2
lombok-f8c16ed8ac69d0106a845ca96573557700b6f39d.zip
[tests] fix tests on java6/7
Diffstat (limited to 'test/bytecode/src/lombok')
-rw-r--r--test/bytecode/src/lombok/bytecode/TestClassFileMetaData.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bytecode/src/lombok/bytecode/TestClassFileMetaData.java b/test/bytecode/src/lombok/bytecode/TestClassFileMetaData.java
index 335455fd..5ff7e93b 100644
--- a/test/bytecode/src/lombok/bytecode/TestClassFileMetaData.java
+++ b/test/bytecode/src/lombok/bytecode/TestClassFileMetaData.java
@@ -76,7 +76,7 @@ public class TestClassFileMetaData {
}
-
+
@Test
public void testUsesClass() {
assertTrue(foo.usesClass("java/lang/System"));
@@ -199,7 +199,7 @@ public class TestClassFileMetaData {
CompilationTask task = compiler.getTask(captureWarnings, null, diagnostics, options, null, Collections.singleton(new ContentBasedJavaFileObject(file.getPath(), readFileAsString(file))));
Boolean taskResult = task.call();
- assertTrue("Compilation task didn't succeed: \n<Warnings and Errors>\n" + compilerErrors.toString() + "\n</Warnings and Errors>", taskResult);
+ assertTrue("Compilation task didn't succeed: \n<Warnings and Errors>\n" + compilerErrors.toString() + "\n" + captureWarnings.toString() + "\n</Warnings and Errors>", taskResult);
return PostCompilerApp.readFile(new File(tempDir, file.getName().replaceAll("\\.java$", ".class")));
} catch (Exception e) {
throw Lombok.sneakyThrow(e);