|
@@ -179,7 +179,18 @@ public class IrcAddressTest extends junit.framework.TestCase {
|
179
|
179
|
assertFalse(true);
|
180
|
180
|
}
|
181
|
181
|
}
|
182
|
|
-
|
|
182
|
+
|
|
183
|
+ @Test
|
|
184
|
+ public void testChannels() throws InvalidAddressException {
|
|
185
|
+ try {
|
|
186
|
+ final IrcAddress address3 = new IrcAddress("irc://server/#MDbot");
|
|
187
|
+ assertEquals(1, address3.getChannels().size());
|
|
188
|
+ assertEquals("#MDbot", address3.getChannels().get(0));
|
|
189
|
+ } catch (InvalidAddressException ex) {
|
|
190
|
+ fail();
|
|
191
|
+ }
|
|
192
|
+ }
|
|
193
|
+
|
183
|
194
|
@Test
|
184
|
195
|
public void testEncoding() {
|
185
|
196
|
try {
|
|
@@ -188,7 +199,7 @@ public class IrcAddressTest extends junit.framework.TestCase {
|
188
|
199
|
assertEquals("#DMDirc", address1.getChannels().get(0));
|
189
|
200
|
} catch (InvalidAddressException ex) {
|
190
|
201
|
assertFalse(true);
|
191
|
|
- }
|
|
202
|
+ }
|
192
|
203
|
}
|
193
|
204
|
|
194
|
205
|
}
|