use of com.tvd12.ezyfoxserver.delegate.EzyAppUserDelegate in project ezyfox-server by youngmonkeys.
the class EzyAppUserManagerImplTest method test.
@Test
public void test() {
EzyAppUserDelegate userDelegate = mock(EzyAppUserDelegate.class);
EzyAppUserManager manager = EzyAppUserManagerImpl.builder().appName("test").userDelegate(userDelegate).build();
EzySimpleUser user = new EzySimpleUser();
user.setName("test");
manager.removeUser(user, EzyUserRemoveReason.EXIT_APP);
manager.addUser(user);
manager.removeUser(user, EzyUserRemoveReason.EXIT_APP);
}
Aggregations