@RunWith(UnitilsJUnit4TestClassRunner.class)publicclassHelloWithUnitilsTest{@CdiInjectionprivateHellohello;@Testpublicvoidtest(){Assert.assertNotNull(hello);assertEquals("should say Hello World !!!","Hello World !!!",hello.sayHelloWorld());}}
Last edit: Willemijn Wouters 2016-06-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unitils CDI module
This module does the configuration for CDI.
CDI Module load artifact (maven)
CDI Module project config
You need to add this in your unitils.properties (unitils.org).
Example
Last edit: Willemijn Wouters 2016-06-23