use of com.tvd12.ezyfoxserver.support.handler.EzyUserRequestInterceptor in project ezyfox-server by youngmonkeys.
the class EzyUserRequestInterceptorTest method preHandleTest.
@Test
public void preHandleTest() {
// given
EzyUserRequestInterceptor<EzyContext> sut = new EzyUserRequestInterceptor<EzyContext>() {
};
// when
// then
EzyContext context = mock(EzyContext.class);
EzyUserSessionEvent event = mock(EzyUserSessionEvent.class);
String command = RandomUtil.randomShortAlphabetString();
String data = RandomUtil.randomShortAlphabetString();
sut.preHandle(context, event, data, command);
sut.postHandle(context, event, data, command);
Exception e = new Exception("just test");
sut.postHandle(context, event, data, command, e);
}
Aggregations