Package io.github.cdiunit
Annotation Type IgnoredClasses
@IgnoredClasses
prevent classes from being automatically added to the CDI environment.
@RunWith(CdiRunner.class) @IgnoredClasses(Starship.class) //Starship is discoverable from the unit test but should not (it could be produced elsewhere). class TestStarship { @Inject Starship starship; //Starship has an engine. @Test void testStart() { starship.start(); // Going to warp! } }
-
Optional Element Summary
Optional Elements