|
@@ -364,15 +364,6 @@ public class IRCParserTest {
|
364
|
364
|
|
365
|
365
|
@Test
|
366
|
366
|
public void testIllegalPort2() throws URISyntaxException {
|
367
|
|
- final TestParser tp = new TestParser(new MyInfo(), new URI("irc://127.0.0.1:1/"));
|
368
|
|
- final ConnectErrorListener tiei = mock(ConnectErrorListener.class);
|
369
|
|
- tp.getCallbackManager().addCallback(ConnectErrorListener.class, tiei);
|
370
|
|
- tp.runSuper();
|
371
|
|
- verify(tiei).onConnectError(same(tp), (ParserError) anyObject());
|
372
|
|
- }
|
373
|
|
-
|
374
|
|
- @Test
|
375
|
|
- public void testIllegalPort3() throws URISyntaxException {
|
376
|
367
|
final TestParser tp = new TestParser(new MyInfo(), new URI("irc://127.0.0.1:65570/"));
|
377
|
368
|
final ConnectErrorListener tiei = mock(ConnectErrorListener.class);
|
378
|
369
|
tp.getCallbackManager().addCallback(ConnectErrorListener.class, tiei);
|