Unit Test - type is 'null' [message #1006476] |
Thu, 31 January 2013 12:47 |
|
Hi,
i am running an unit test that tests the generation of java code. But it can not resolve references to JVMTypes.
My entity dsl uses Xbase to generate java code. That works really fine in the IDE.
But if I try to run the generator as a plugin unit test, it fails since cross references to JVMTypes can not be resolved properly.
I am using the CompilationTestHelper to compile my model.
Input is:
package my.test {
entity Library {
refers Book containedBook opposite library composition
}
entity Book {
refers Library library opposite containedBook
}
}
In IDE that compiles to:
@Entity
public class Book {
@OneToOne
@JoinColumn(name = "LIBRARY")
private Library library;
But if i am using the CompilationTestHelper in an unit test the reference to Library can not be resolved.
@Entity
public class Book {
@OneToOne
@JoinColumn(name = "LIBRARY")
private /* type is 'null' */ library;
I checked my target platform and my run configuration several times. All required bundles seem to be available. And i do not have any idea what happens.
Any hints?
Thanks a lot
Florian
[Updated on: Thu, 31 January 2013 14:42] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03048 seconds