Added a test to make sure we never break ecj again.

This commit is contained in:
Reinier Zwitserloot committed 2012-01-09 19:49:56 +01:00
1 parent 8fb7c9c8a2
commit 9abb6432e9
3 files changed
+23 -1

No files matched your search

+12 -1
View File
@@ -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" />
+1
View File
@@ -0,0 +1 @@
*.class
+10
View File
@@ -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;
}
}