Bump copyright years
[cacert-votebot.git] / src / test / java / org / cacert / votebot / shared / exceptions / InvalidChannelNameTest.java
1 /*
2 * Copyright (c) 2016. 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
20 package org.cacert.votebot.shared.exceptions;
21
22 import org.junit.Assert;
23 import org.junit.Test;
24
25 import java.util.ResourceBundle;
26
27 /**
28 * @author Jan Dittberner
29 */
30 public class InvalidChannelNameTest {
31 @Test
32 public void testConstructor() {
33 final InvalidChannelName e = new InvalidChannelName("test");
34 Assert.assertEquals(
35 String.format(ResourceBundle.getBundle("messages").getString("invalid_channel_name"), "test"),
36 e.getMessage());
37 }
38 }