use of org.apache.felix.scr.impl.logger.MockComponentLogger in project felix by apache.
the class ActivateMethodTest method newContainer.
private ComponentContainer newContainer() {
final ComponentMetadata metadata = newMetadata();
ComponentContainer container = new ComponentContainer() {
@Override
public ComponentActivator getActivator() {
final ComponentActivator ca = Mockito.mock(ComponentActivator.class);
Mockito.when(ca.getBundleContext()).thenReturn(Mockito.mock(BundleContext.class));
return ca;
}
@Override
public ComponentMetadata getComponentMetadata() {
return metadata;
}
@Override
public void disposed(SingleComponentManager component) {
}
public boolean isEnabled() {
return false;
}
@Override
public ComponentLogger getLogger() {
return new MockComponentLogger();
}
};
return container;
}
Aggregations