mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-16 10:15:22 +00:00
Added a test to make sure we never break ecj again.
This commit is contained in:
1 parent
8fb7c9c8a2
commit
9abb6432e9
3 files changed
+23
-1
No files matched your search
@@ -307,7 +307,18 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="test" depends="-test-compile, dist" unless="tests.skip" description="Runs the tests.">
|
||||
<target name="test-ecj" depends="dist, contrib" unless="tests.skip">
|
||||
<java jar="lib/ecj/ecj.jar" fork="true" failonerror="true">
|
||||
<jvmarg value="-javaagent:dist/lombok.jar=ecj" />
|
||||
<arg value="-source" />
|
||||
<arg value="1.6" />
|
||||
<arg value="-target" />
|
||||
<arg value="1.6" />
|
||||
<arg value="test/ecj/SimpleTest.java" />
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="test" depends="-test-compile, dist, test-ecj" unless="tests.skip" description="Runs the tests.">
|
||||
<junit haltonfailure="yes" fork="on">
|
||||
<jvmarg value="-javaagent:dist/lombok.jar" />
|
||||
<formatter type="plain" usefile="false" unless="tests.quiet" />
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
*.class
|
||||
@@ -0,0 +1,10 @@
|
||||
@lombok.Data
|
||||
public class SimpleTest {
|
||||
private final String test;
|
||||
private final int foo;
|
||||
|
||||
public String bar() {
|
||||
int val = getFoo() + 5;
|
||||
return new SimpleTest("", 0).toString() + val;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user