[forge-users] Unable to Inject into Test Class

forge-users at lists.jboss.org forge-users at lists.jboss.org
Thu Jan 30 09:13:39 EST 2014


Hey Lincoln,

I ended up getting the test to work. For the record, here (https://github.com/mbarkley/forge-errai/blob/c523efb2c1a114275a8fc8492bbcdd03d126bff4/src/test/java/org/jboss/errai/forge/test/base/ForgeTest.java) is the result I ended up with (ignore the classes added to the deployment -- those were required to get other test classes extending ForgeTest to run).

Note that the last step that was required to get injection working was to remove the name (previously "ForgeTest") from the @Deployment annotation. It is possible to reproduce the failure by checking out a copy of the linked commit, adding "ForgeTest" as the name of the @Deployment, and running ForgeTest with JUnit.

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


More information about the forge-users mailing list