Search in sources :

Example 26 with EzyAppUserManager

use of com.tvd12.ezyfoxserver.wrapper.EzyAppUserManager 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

EzyAppUserManager (com.tvd12.ezyfoxserver.wrapper.EzyAppUserManager)26 EzyApplication (com.tvd12.ezyfoxserver.EzyApplication)19 Test (org.testng.annotations.Test)18 EzyAppContext (com.tvd12.ezyfoxserver.context.EzyAppContext)16 EzyZoneContext (com.tvd12.ezyfoxserver.context.EzyZoneContext)9 BaseTest (com.tvd12.test.base.BaseTest)9 EzyUser (com.tvd12.ezyfoxserver.entity.EzyUser)8 EzySession (com.tvd12.ezyfoxserver.entity.EzySession)7 ScheduledExecutorService (java.util.concurrent.ScheduledExecutorService)7 EzyServerContext (com.tvd12.ezyfoxserver.context.EzyServerContext)6 EzySimpleAppSetting (com.tvd12.ezyfoxserver.setting.EzySimpleAppSetting)6 EzyEventControllers (com.tvd12.ezyfoxserver.wrapper.EzyEventControllers)6 EzyErrorScheduledExecutorService (com.tvd12.ezyfox.concurrent.EzyErrorScheduledExecutorService)5 EzySimpleApplication (com.tvd12.ezyfoxserver.EzySimpleApplication)5 EzySimpleServer (com.tvd12.ezyfoxserver.EzySimpleServer)5 EzySimpleZone (com.tvd12.ezyfoxserver.EzySimpleZone)5 EzySimpleAppContext (com.tvd12.ezyfoxserver.context.EzySimpleAppContext)5 EzySimpleServerContext (com.tvd12.ezyfoxserver.context.EzySimpleServerContext)5 EzySimpleZoneContext (com.tvd12.ezyfoxserver.context.EzySimpleZoneContext)5 EzySimpleAppUserDelegate (com.tvd12.ezyfoxserver.delegate.EzySimpleAppUserDelegate)5