Search in sources :

Example 1 with GlobalHipChatRepositoryWrapper

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);
}
Also used : GlobalHipChatRepositoryWrapper(com.blackducksoftware.integration.hub.alert.channel.hipchat.repository.global.GlobalHipChatRepositoryWrapper) HipChatManager(com.blackducksoftware.integration.hub.alert.channel.hipchat.HipChatManager)

Example 2 with GlobalHipChatRepositoryWrapper

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);
}
Also used : GlobalHipChatRepositoryWrapper(com.blackducksoftware.integration.hub.alert.channel.hipchat.repository.global.GlobalHipChatRepositoryWrapper) ObjectTransformer(com.blackducksoftware.integration.hub.alert.web.ObjectTransformer) HipChatManager(com.blackducksoftware.integration.hub.alert.channel.hipchat.HipChatManager)

Example 3 with GlobalHipChatRepositoryWrapper

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;
}
Also used : GlobalHipChatRepositoryWrapper(com.blackducksoftware.integration.hub.alert.channel.hipchat.repository.global.GlobalHipChatRepositoryWrapper) HipChatDistributionRepositoryWrapper(com.blackducksoftware.integration.hub.alert.channel.hipchat.repository.distribution.HipChatDistributionRepositoryWrapper) ObjectTransformer(com.blackducksoftware.integration.hub.alert.web.ObjectTransformer)

Aggregations

GlobalHipChatRepositoryWrapper (com.blackducksoftware.integration.hub.alert.channel.hipchat.repository.global.GlobalHipChatRepositoryWrapper)3 HipChatManager (com.blackducksoftware.integration.hub.alert.channel.hipchat.HipChatManager)2 ObjectTransformer (com.blackducksoftware.integration.hub.alert.web.ObjectTransformer)2 HipChatDistributionRepositoryWrapper (com.blackducksoftware.integration.hub.alert.channel.hipchat.repository.distribution.HipChatDistributionRepositoryWrapper)1