use of com.tvd12.ezyfoxserver.support.test.controller.HelloController in project ezyfox-server by youngmonkeys.
the class EzyRequestHandlersImplementerTest method testImplementDuplicateCommandButAllowOverride.
@Test
public void testImplementDuplicateCommandButAllowOverride() {
EzyRequestHandlerImplementer.setDebug(true);
EzyRequestHandlersImplementer implementer = new EzyRequestHandlersImplementer();
EzyFeatureCommandManager featureCommandManager = new EzyFeatureCommandManager();
EzyRequestCommandManager requestCommandManager = new EzyRequestCommandManager();
implementer.setFeatureCommandManager(featureCommandManager);
implementer.setRequestCommandManager(requestCommandManager);
implementer.setAllowOverrideCommand(true);
implementer.implement(Arrays.asList(new HelloController(), new HelloController()));
}
use of com.tvd12.ezyfoxserver.support.test.controller.HelloController in project ezyfox-server by youngmonkeys.
the class EzyRequestHandlersImplementerTest method testImplementFailedCase3.
@Test(expectedExceptions = EzyDuplicateRequestHandlerException.class)
public void testImplementFailedCase3() {
EzyRequestHandlerImplementer.setDebug(true);
EzyRequestHandlersImplementer implementer = new EzyRequestHandlersImplementer();
EzyFeatureCommandManager featureCommandManager = new EzyFeatureCommandManager();
EzyRequestCommandManager requestCommandManager = new EzyRequestCommandManager();
implementer.setFeatureCommandManager(featureCommandManager);
implementer.setRequestCommandManager(requestCommandManager);
implementer.implement(Arrays.asList(new HelloController(), new HelloController()));
}
use of com.tvd12.ezyfoxserver.support.test.controller.HelloController in project ezyfox-server by youngmonkeys.
the class HelloController method greet.
@EzyDoHandle("Hello2")
public void greet(@EzyRequestData GreetRequest request, EzyUser user, EzySession session, Integer nothing) {
GreetResponse response = new GreetResponse("Hello " + request.getWho() + "!");
System.out.println("HelloController::Big/Hello response: " + response);
}
use of com.tvd12.ezyfoxserver.support.test.controller.HelloController in project ezyfox-server by youngmonkeys.
the class HelloController method greet.
@EzyDoHandle("Hello")
public void greet(GreetRequest request, EzyUser user, EzySession session) {
GreetResponse response = new GreetResponse("Hello " + request.getWho() + "!");
System.out.println("HelloController::Big/Hello response: " + response);
}
use of com.tvd12.ezyfoxserver.support.test.controller.HelloController in project ezyfox-server by youngmonkeys.
the class HelloController method greet.
@EzyDoHandle("Hello5")
public void greet(@EzyRequestData GreetRequest request, EzyUser user, EzySession session, char nothing) {
GreetResponse response = new GreetResponse("Hello " + request.getWho() + "!");
System.out.println("HelloController::Big/Hello response: " + response);
}
Aggregations