use of org.roof.im.request.CloseSessionRequest in project roof-im by madfroglx.
the class CloseSessionTest method testSessionNotExists.
@Test
public void testSessionNotExists() throws Exception {
CloseSessionRequest request = new CloseSessionRequest();
request.setSessionId(123);
request.setRequestType(RequestType.closeSession.name());
request.setToken("abc");
ValueStack valueStack = getValueStack(request);
enterChain.doChain(valueStack);
}
use of org.roof.im.request.CloseSessionRequest in project roof-im by madfroglx.
the class CloseSessionTest method testSuccess.
@Test
public void testSuccess() throws Exception {
Session session = sessionManager.open("abc", "efg", 0, 99);
CloseSessionRequest request = new CloseSessionRequest();
request.setSessionId(session.getId());
request.setRequestType(RequestType.closeSession.name());
request.setToken("abc");
ValueStack valueStack = getValueStack(request);
enterChain.doChain(valueStack);
}
Aggregations