diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-04 19:14:14 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-08-04 19:14:14 +0200 |
commit | f0a9ad191465bba0e7ddaea700d9667be699fec3 (patch) | |
tree | 2ae22c719da1a690d44d7397547105bd9ea6e52b /container-compiler-plugin/src/test | |
parent | 6d4c6960e69b53c124bd84beb3d008bd5a4bb319 (diff) | |
download | container-playground-f0a9ad191465bba0e7ddaea700d9667be699fec3.tar.gz container-playground-f0a9ad191465bba0e7ddaea700d9667be699fec3.tar.bz2 container-playground-f0a9ad191465bba0e7ddaea700d9667be699fec3.tar.xz container-playground-f0a9ad191465bba0e7ddaea700d9667be699fec3.zip |
wip
o Adding support for int and long types.
Diffstat (limited to 'container-compiler-plugin/src/test')
2 files changed, 7 insertions, 3 deletions
diff --git a/container-compiler-plugin/src/test/java/io/trygvis/container/compiler/ProcessorTest.java b/container-compiler-plugin/src/test/java/io/trygvis/container/compiler/ProcessorTest.java index f30b731..4266a01 100644 --- a/container-compiler-plugin/src/test/java/io/trygvis/container/compiler/ProcessorTest.java +++ b/container-compiler-plugin/src/test/java/io/trygvis/container/compiler/ProcessorTest.java @@ -31,11 +31,12 @@ public class ProcessorTest { InMemoryJavaFileManager fileManager = new InMemoryJavaFileManager(standardFileManager); - List<JavaSourceFromString> sources = asList( + List<JavaSourceFromString> sources = asList((JavaSourceFromString[])new JavaSourceFromString[]{ loadJava("io.trygvis.persistence.test.package-info"), loadJava("io.trygvis.persistence.test.Person"), loadJava("io.trygvis.persistence.test.ParentEntity"), - loadJava("io.trygvis.persistence.test.ChildEntity")); + loadJava("io.trygvis.persistence.test.ChildEntity"), + }); JavaCompiler.CompilationTask task = compiler.getTask(null, fileManager, collector, null, null, sources); diff --git a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ChildEntity.java b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ChildEntity.java index a341fd2..ff91680 100644 --- a/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ChildEntity.java +++ b/container-compiler-plugin/src/test/resources/io/trygvis/persistence/test/ChildEntity.java @@ -6,9 +6,12 @@ import javax.persistence.Entity; public class ChildEntity extends ParentEntity { public final String name; - public ChildEntity(Long id, String name) { + public final int favoriteNumber; + + public ChildEntity(Long id, String name, int favoriteNumber) { super(id); this.name = name; + this.favoriteNumber = favoriteNumber; } // ----------------------------------------------------------------------- |