Implement help command, add more tests, improve messages
[cacert-votebot.git] / src / test / java / org / cacert / votebot / vote / TestConfiguration.java
1 /*
2 * Copyright (c) 2016, 2018 Jan Dittberner
3 *
4 * This file is part of CAcert VoteBot.
5 *
6 * CAcert VoteBot is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation, either version 3 of the License, or (at your option)
9 * any later version.
10 *
11 * CAcert VoteBot is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * CAcert VoteBot. If not, see <http://www.gnu.org/licenses/>.
18 */
19 package org.cacert.votebot.vote;
20
21 import org.cacert.votebot.shared.CAcertVoteMechanics;
22 import org.cacert.votebot.shared.IRCClient;
23 import org.mockito.Mockito;
24 import org.springframework.context.annotation.Bean;
25 import org.springframework.context.annotation.Configuration;
26 import org.springframework.context.annotation.Primary;
27
28 @Configuration
29 public class TestConfiguration {
30 @Bean
31 @Primary
32 public CAcertVoteMechanics getTestVoteMechanics() {
33 return Mockito.mock(CAcertVoteMechanics.class);
34 }
35
36 @Bean
37 @Primary
38 public IRCClient getTestIrcClient() {
39 return Mockito.mock(IRCClient.class);
40 }
41 }