diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-03-05 07:55:40 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-03-05 08:06:46 +0100 |
commit | f8c16ed8ac69d0106a845ca96573557700b6f39d (patch) | |
tree | d4170a71775dbeb13e58aa87585dabc9ab9f6c4f /test/bytecode/src/lombok | |
parent | eebc5f4e851a4ce6f2775ebaf6e74794480da0b9 (diff) | |
download | lombok-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.java | 4 |
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); |