use of com.tvd12.ezyfoxserver.client.entity.EzyUser in project ezyfox-server by youngmonkeys.
the class EzyDisconnectEventImplTest method test.
@Test
public void test() {
EzyUser user = newUser();
EzyUserRemovedEvent event = new EzySimpleUserRemovedEvent(user, EzyDisconnectReason.IDLE);
assert event.getUser() == user;
assert event.getReason() == EzyDisconnectReason.IDLE;
}
use of com.tvd12.ezyfoxserver.client.entity.EzyUser in project ezyfox-server by youngmonkeys.
the class EzySimpleUserAccessedAppEventTest method test.
@Test
public void test() {
// given
EzyUser user = newUser();
EzySimpleUserAccessedAppEvent underTest = new EzySimpleUserAccessedAppEvent(user);
// when
EzyUser actual = underTest.getUser();
// then
Asserts.assertEquals(actual, user);
}
use of com.tvd12.ezyfoxserver.client.entity.EzyUser 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.client.entity.EzyUser 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.client.entity.EzyUser 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