aboutsummaryrefslogtreecommitdiff
path: root/test/delombok/src/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-11-28 09:30:31 +0100
committerReinier Zwitserloot <reinier@tipit.to>2009-11-28 09:30:31 +0100
commite9ae8b0c37e1346a010db8cae0e648039944630c (patch)
treeea8db61249c30b5833f6ec99a7c932b5d7d6c1c6 /test/delombok/src/lombok
parent4a017f6f9688de87c8c03ed357635d637f1da970 (diff)
parente67e9e14dcc0f3754c3a42e6b4d039a7aa04db1a (diff)
downloadlombok-e9ae8b0c37e1346a010db8cae0e648039944630c.tar.gz
lombok-e9ae8b0c37e1346a010db8cae0e648039944630c.tar.bz2
lombok-e9ae8b0c37e1346a010db8cae0e648039944630c.zip
Merge branch 'master' of git@github.com:rzwitserloot/lombok
Diffstat (limited to 'test/delombok/src/lombok')
-rw-r--r--test/delombok/src/lombok/delombok/TestSourceFiles.java35
1 files changed, 28 insertions, 7 deletions
diff --git a/test/delombok/src/lombok/delombok/TestSourceFiles.java b/test/delombok/src/lombok/delombok/TestSourceFiles.java
index a5df5197..fc2a9cab 100644
--- a/test/delombok/src/lombok/delombok/TestSourceFiles.java
+++ b/test/delombok/src/lombok/delombok/TestSourceFiles.java
@@ -21,18 +21,39 @@
*/
package lombok.delombok;
-import java.io.File;
-
-import lombok.TestViaDelombok;
+import lombok.ReflectionFileTester;
+import org.junit.BeforeClass;
import org.junit.Test;
public class TestSourceFiles {
- private static final File BEFORE_DIR = new File("test/delombok/resource/before");
- private static final File AFTER_DIR = new File("test/delombok/resource/after");
+ private static final String AFTER = "test/delombok/resource/after";
+ private static final String BEFORE = "test/delombok/resource/before";
+
+ private static final ReflectionFileTester tester = new ReflectionFileTester(BEFORE, AFTER);
+
+ @BeforeClass
+ public static void verify() {
+ tester.verify(TestSourceFiles.class);
+ }
+
+ @Test
+ public void testAnnotation() throws Exception {
+ tester.test();
+ }
+
+ @Test
+ public void testCast() throws Exception {
+ tester.test();
+ }
+
+ @Test
+ public void testForLoop() throws Exception {
+ tester.test();
+ }
@Test
- public void testSources() throws Exception {
- TestViaDelombok.runComparison(BEFORE_DIR, AFTER_DIR);
+ public void testWithComments() throws Exception {
+ tester.test();
}
}