use of com.tvd12.ezyfoxserver.command.impl.EzyPluginResponseImpl in project ezyfox-server by youngmonkeys.
the class EzyPluginResponseImplTest method test.
@Test
public void test() {
EzyZoneContext zoneContext = mock(EzyZoneContext.class);
EzyZone zone = mock(EzyZone.class);
when(zoneContext.getZone()).thenReturn(zone);
EzyZoneUserManager userManager = EzyZoneUserManagerImpl.builder().build();
when(zone.getUserManager()).thenReturn(userManager);
EzyPluginContext pluginContext = mock(EzyPluginContext.class);
when(pluginContext.getParent()).thenReturn(zoneContext);
EzyPluginResponse cmd = (EzyPluginResponse) new EzyPluginResponseImpl(pluginContext).command("test").params(EzyEntityFactory.newArrayBuilder());
cmd.execute();
}
Aggregations