Here is the gist of what I was trying to do:

@RunWith( CdiTestRunner.class )
Test
{
     @Before
     init()
     {
           System.setProperty( "key", "value" );
     }

     @Test
      testOne()
      {
           // testing @Exclude( onExpression = "key!=value" )
      }
}



It seems this will not work. ( or should this work, am I missing a config
option somewhere ? ) Only properties set on command line or configuration
of maven-surefire-plugin will be evaluated during the boot up of the CDI
container.
Is there any way to test different combinations of @Exclude within the code
of the Test class ?

Reply via email to