use of com.blackducksoftware.integration.hub.alert.channel.hipchat.repository.global.GlobalHipChatRepositoryWrapper in project hub-alert by blackducksoftware.
the class GlobalHipChatConfigActionsTest method createMockedConfigActionsUsingObjectTransformer.
@Override
public GlobalHipChatConfigActions createMockedConfigActionsUsingObjectTransformer(final ObjectTransformer objectTransformer) {
final GlobalHipChatRepositoryWrapper hipChatRepo = Mockito.mock(GlobalHipChatRepositoryWrapper.class);
final HipChatManager hipChatManager = Mockito.mock(HipChatManager.class);
return new GlobalHipChatConfigActions(hipChatRepo, objectTransformer, hipChatManager);
}
use of com.blackducksoftware.integration.hub.alert.channel.hipchat.repository.global.GlobalHipChatRepositoryWrapper in project hub-alert by blackducksoftware.
the class GlobalHipChatConfigActionsTest method getMockedConfigActions.
@Override
public GlobalHipChatConfigActions getMockedConfigActions() {
final GlobalHipChatRepositoryWrapper hipChatRepo = Mockito.mock(GlobalHipChatRepositoryWrapper.class);
final ObjectTransformer objectTransformer = new ObjectTransformer();
final HipChatManager hipChatManager = Mockito.mock(HipChatManager.class);
return new GlobalHipChatConfigActions(hipChatRepo, objectTransformer, hipChatManager);
}
use of com.blackducksoftware.integration.hub.alert.channel.hipchat.repository.global.GlobalHipChatRepositoryWrapper in project hub-alert by blackducksoftware.
the class HipChatManagerTest method getChannelManager.
@Override
public HipChatManager getChannelManager() {
final HipChatChannel mockChannel = Mockito.mock(HipChatChannel.class);
final GlobalHipChatRepositoryWrapper mockGlobalRepositoryWrapper = Mockito.mock(GlobalHipChatRepositoryWrapper.class);
final HipChatDistributionRepositoryWrapper mockRepositoryWrapper = Mockito.mock(HipChatDistributionRepositoryWrapper.class);
final HipChatManager manager = new HipChatManager(mockChannel, mockGlobalRepositoryWrapper, mockRepositoryWrapper, new ObjectTransformer());
return manager;
}
Aggregations