Search in sources :

Example 1 with EzyAppUserDelegate

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);
}
Also used : EzySimpleUser(com.tvd12.ezyfoxserver.entity.EzySimpleUser) EzyAppUserManager(com.tvd12.ezyfoxserver.wrapper.EzyAppUserManager) EzyAppUserDelegate(com.tvd12.ezyfoxserver.delegate.EzyAppUserDelegate) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Aggregations

EzyAppUserDelegate (com.tvd12.ezyfoxserver.delegate.EzyAppUserDelegate)1 EzySimpleUser (com.tvd12.ezyfoxserver.entity.EzySimpleUser)1 EzyAppUserManager (com.tvd12.ezyfoxserver.wrapper.EzyAppUserManager)1 BaseTest (com.tvd12.test.base.BaseTest)1 Test (org.testng.annotations.Test)1