public class ManagerConnectionImplTest
extends junit.framework.TestCase
| Modifier and Type | Field and Description |
|---|---|
protected org.asteriskjava.manager.internal.ManagerConnectionImplTest.MockedManagerConnectionImpl |
mc |
protected ManagerReaderMock |
mockReader |
protected SocketConnectionFacade |
mockSocket |
protected ManagerWriterMock |
mockWriter |
| Constructor and Description |
|---|
ManagerConnectionImplTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testDefaultConstructor() |
void |
testDispatchEventWithMultipleEventHandlers() |
void |
testDispatchResponseMissingInternalActionId() |
void |
testDispatchResponseNullActionId() |
void |
testDispatchResponseNullResponse() |
void |
testDispatchResponseUnexpectedResponse() |
void |
testIsShowVersionCommandAction() |
void |
testLogin() |
void |
testLoginIncorrectKey() |
void |
testLoginIOExceptionOnConnect() |
void |
testLoginTimeoutOnChallengeAction() |
void |
testLoginTimeoutOnConnect() |
void |
testLogoffWhenConnected() |
void |
testLogoffWhenNotConnected() |
void |
testReconnect() |
void |
testReconnectWithIOException() |
void |
testReconnectWithTimeoutException() |
void |
testRegisterUserEventClass() |
void |
testSendAction() |
void |
testSendActionTimeout() |
void |
testSendActionWhenNotConnected() |
void |
testSendActionWithNullAction() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatprotected SocketConnectionFacade mockSocket
protected ManagerWriterMock mockWriter
protected ManagerReaderMock mockReader
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionpublic void testDefaultConstructor()
public void testRegisterUserEventClass()
public void testLoginIOExceptionOnConnect()
throws Exception
Exceptionpublic void testLoginTimeoutOnConnect()
throws Exception
Exceptionpublic void testLoginTimeoutOnChallengeAction()
throws Exception
Exceptionpublic void testLogoffWhenNotConnected()
throws Exception
Exceptionpublic void testSendActionWithNullAction()
throws Exception
Exceptionpublic void testSendActionWhenNotConnected()
throws Exception
Exceptionpublic void testDispatchResponseUnexpectedResponse()
public void testDispatchResponseMissingInternalActionId()
public void testDispatchResponseNullActionId()
public void testDispatchResponseNullResponse()
public void testReconnectWithIOException()
throws Exception
Exceptionpublic void testReconnectWithTimeoutException()
throws Exception
Exceptionpublic void testDispatchEventWithMultipleEventHandlers()
public void testIsShowVersionCommandAction()
Copyright © 2004-2012 Stefan Reuter. All Rights Reserved.