[forge-users] Unable to Inject into Test Class

forge-users at lists.jboss.org forge-users at lists.jboss.org
Wed Jan 29 10:42:48 EST 2014


I'm currently migrating a plugin from version 1.4.4.Final to 2.0.0.CR2 of Forge, and injection is not occurring with my new tests using furnace.

Here (https://github.com/mbarkley/forge-errai/blob/f91679f2e549cefa457ba0bdca0ee35d41a2965b/src/test/java/org/jboss/errai/forge/test/base/ForgeTest.java) is the test. Here (https://github.com/mbarkley/forge-errai/blob/f91679f2e549cefa457ba0bdca0ee35d41a2965b/pom.xml) is my pom. And here (http://pastebin.com/D4J3MW3G) is the terminal output while running the test.

The result is that the test fails because both of the @Inject'ed fields are null. I've tried looking at tests in the Forge repository, but I have been unable to discern what I am doing differently.

Any help is appreciated.

Posted by forums
Original post: https://community.jboss.org/message/855384#855384


More information about the forge-users mailing list