use of com.tvd12.example.reactive.HomeController in project ezyhttp by youngmonkeys.
the class RequestHandlerImplementerTest method test.
@Test
public void test() {
RequestHandlerImplementer.setDebug(true);
ControllerProxy homeController = new ControllerProxy(new HomeController());
for (RequestHandlerMethod method : homeController.getRequestHandlerMethods()) {
RequestHandlerImplementer implementer = new RequestHandlerImplementer(homeController, method);
implementer.implement();
}
}
use of com.tvd12.example.reactive.HomeController in project ezyhttp by youngmonkeys.
the class ControllerProxyTest method test.
@Test
public void test() {
ControllerProxy home = new ControllerProxy(new HomeController());
System.out.println(home);
}
use of com.tvd12.example.reactive.HomeController in project ezyhttp by youngmonkeys.
the class RequestHandlerImplementerTest method test.
@Test
public void test() {
RequestHandlerImplementer.setDebug(true);
ControllerProxy homeController = new ControllerProxy(new HomeController());
for (RequestHandlerMethod method : homeController.getRequestHandlerMethods()) {
RequestHandlerImplementer implementer = new RequestHandlerImplementer(homeController, method);
implementer.implement();
}
}
use of com.tvd12.example.reactive.HomeController in project ezyhttp by youngmonkeys.
the class RequestHandlerImplementerTest method test.
@Test
public void test() {
RequestHandlerImplementer.setDebug(true);
ControllerProxy homeController = new ControllerProxy(new HomeController());
for (RequestHandlerMethod method : homeController.getRequestHandlerMethods()) {
RequestHandlerImplementer implementer = new RequestHandlerImplementer(homeController, method);
implementer.implement();
}
}
use of com.tvd12.example.reactive.HomeController in project ezyhttp by youngmonkeys.
the class ControllerProxyTest method test.
@Test
public void test() {
// given
HomeController homeController = new HomeController();
ControllerProxy sut = new ControllerProxy(homeController);
// when
List<ExceptionHandlerMethod> exceptionHandlerMethods = sut.getExceptionHandlerMethods();
// then
Asserts.assertEquals(2, exceptionHandlerMethods.size());
Asserts.assertFalse(sut.isPayment());
Asserts.assertNull(sut.getFeature());
System.out.println(sut);
}
Aggregations