Xavier Dury created TOMEE-1958:

             Summary: Allow @MockInjector to be placed on test class when using 
application composer
                 Key: TOMEE-1958
                 URL: https://issues.apache.org/jira/browse/TOMEE-1958
             Project: TomEE
          Issue Type: Improvement
            Reporter: Xavier Dury
            Priority: Trivial

Currently, when using {{ApplicationComposer}}, {{@MockInjector}} can be 
declared in two ways:

public @MockInjector FallbackPropertyInjector injector() {
        return new MockitoInjector();

public @MockInjector Class<? extends FallbackPropertyInjector> injectorClass() {
        return MockitoInjector.class;

As almost everything can now be declared with annotations on the test class 
({{@ContainerProperties}} = {{@Configuration}}, {{@Classes}} ~ {{@Module}}), it 
would be nice if {{@MockInjector}} could be too:

public class MyTest {...}

This message was sent by Atlassian JIRA

Reply via email to