|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.bytestreams.ibb.InitiationListenerTest
public class InitiationListenerTest
Test for the InitiationListener class.
| Constructor Summary | |
|---|---|
InitiationListenerTest()
|
|
| Method Summary | |
|---|---|
void |
setup()
Initialize fields used in the tests. |
void |
shouldIgnoreInBandBytestreamRequestOnce()
If a request with a specific session ID should be ignored no listeners should be notified. |
void |
shouldInvokeAllRequestsListenerIfUserListenerExists()
If a user specific listener and an all requests listener is registered only the all requests listener should be notified on an incoming request for another user. |
void |
shouldInvokeListenerForAllRequests()
If a listener for all requests is registered it should be notified on incoming requests. |
void |
shouldInvokeListenerForUser()
If a listener for a specific user in registered it should be notified on incoming requests for that user. |
void |
shouldNotInvokeAllRequestsListenerIfUserListenerExists()
If a user specific listener and an all requests listener is registered only the user specific listener should be notified. |
void |
shouldNotInvokeListenerForUser()
If listener for a specific user is registered it should not be notified on incoming requests from other users. |
void |
shouldRejectRequestWithTooBigBlockSize()
Open request with a block size that exceeds the maximum block size should be replied with an resource-constraint error. |
void |
shouldRespondWithError()
If no listeners are registered for incoming In-Band Bytestream requests, all request should be rejected with an error. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InitiationListenerTest()
| Method Detail |
|---|
public void setup()
public void shouldRespondWithError()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldRejectRequestWithTooBigBlockSize()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldInvokeListenerForAllRequests()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldInvokeListenerForUser()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldNotInvokeListenerForUser()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldNotInvokeAllRequestsListenerIfUserListenerExists()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldInvokeAllRequestsListenerIfUserListenerExists()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldIgnoreInBandBytestreamRequestOnce()
throws java.lang.Exception
java.lang.Exception - should not happen
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||