Hi I have a question about using @Before in CdiTestRunner enabled unit tests.
The following test fails when I set the config property
deltaspike.testcontrol.use_test_class_as_cdi_bean=true
@RunWith(CdiTestRunner.class)
public class ATest {
boolean a;
@Before
public void setup() {
a = true;
}
@Test
public void testA() {
assertTrue(a);
}
}
Is this expected behaviour because the test class is processed as a CDI
bean? Or is it a bug?
Cheers,
Gary
