Search in sources :

Example 1 with GlobalExceptionHandler

use of com.tvd12.ezyhttp.server.jetty.test.controller.GlobalExceptionHandler in project ezyhttp by youngmonkeys.

the class ExceptionHandlerImplementerTest method test.

@Test
public void test() {
    ExceptionHandlerImplementer.setDebug(true);
    ExceptionHandlerProxy exceptionHandler = new ExceptionHandlerProxy(new GlobalExceptionHandler());
    for (ExceptionHandlerMethod method : exceptionHandler.getExceptionHandlerMethods()) {
        ExceptionHandlerImplementer implementer = new ExceptionHandlerImplementer(exceptionHandler, method);
        implementer.implement();
    }
}
Also used : GlobalExceptionHandler(com.tvd12.ezyhttp.server.core.test.controller.GlobalExceptionHandler) ExceptionHandlerImplementer(com.tvd12.ezyhttp.server.core.asm.ExceptionHandlerImplementer) ExceptionHandlerProxy(com.tvd12.ezyhttp.server.core.reflect.ExceptionHandlerProxy) ExceptionHandlerMethod(com.tvd12.ezyhttp.server.core.reflect.ExceptionHandlerMethod) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Example 2 with GlobalExceptionHandler

use of com.tvd12.ezyhttp.server.jetty.test.controller.GlobalExceptionHandler in project ezyhttp by youngmonkeys.

the class ExceptionHandlerImplementerTest method test.

@Test
public void test() {
    ExceptionHandlerImplementer.setDebug(true);
    ExceptionHandlerProxy exceptionHandler = new ExceptionHandlerProxy(new GlobalExceptionHandler());
    for (ExceptionHandlerMethod method : exceptionHandler.getExceptionHandlerMethods()) {
        ExceptionHandlerImplementer implementer = new ExceptionHandlerImplementer(exceptionHandler, method);
        implementer.implement();
    }
}
Also used : GlobalExceptionHandler(com.tvd12.ezyhttp.server.jetty.test.controller.GlobalExceptionHandler) ExceptionHandlerImplementer(com.tvd12.ezyhttp.server.core.asm.ExceptionHandlerImplementer) ExceptionHandlerProxy(com.tvd12.ezyhttp.server.core.reflect.ExceptionHandlerProxy) ExceptionHandlerMethod(com.tvd12.ezyhttp.server.core.reflect.ExceptionHandlerMethod) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Example 3 with GlobalExceptionHandler

use of com.tvd12.ezyhttp.server.jetty.test.controller.GlobalExceptionHandler in project ezyhttp by youngmonkeys.

the class ExceptionHandlerImplementerTest method test.

@Test
public void test() {
    ExceptionHandlerImplementer.setDebug(true);
    ExceptionHandlerProxy exceptionHandler = new ExceptionHandlerProxy(new GlobalExceptionHandler());
    for (ExceptionHandlerMethod method : exceptionHandler.getExceptionHandlerMethods()) {
        ExceptionHandlerImplementer implementer = new ExceptionHandlerImplementer(exceptionHandler, method);
        implementer.implement();
    }
}
Also used : GlobalExceptionHandler(com.tvd12.ezyhttp.server.boot.test.controller.GlobalExceptionHandler) ExceptionHandlerImplementer(com.tvd12.ezyhttp.server.core.asm.ExceptionHandlerImplementer) ExceptionHandlerProxy(com.tvd12.ezyhttp.server.core.reflect.ExceptionHandlerProxy) ExceptionHandlerMethod(com.tvd12.ezyhttp.server.core.reflect.ExceptionHandlerMethod) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Aggregations

ExceptionHandlerImplementer (com.tvd12.ezyhttp.server.core.asm.ExceptionHandlerImplementer)3 ExceptionHandlerMethod (com.tvd12.ezyhttp.server.core.reflect.ExceptionHandlerMethod)3 ExceptionHandlerProxy (com.tvd12.ezyhttp.server.core.reflect.ExceptionHandlerProxy)3 BaseTest (com.tvd12.test.base.BaseTest)3 Test (org.testng.annotations.Test)3 GlobalExceptionHandler (com.tvd12.ezyhttp.server.boot.test.controller.GlobalExceptionHandler)1 GlobalExceptionHandler (com.tvd12.ezyhttp.server.core.test.controller.GlobalExceptionHandler)1 GlobalExceptionHandler (com.tvd12.ezyhttp.server.jetty.test.controller.GlobalExceptionHandler)1