use of com.tvd12.ezyfoxserver.command.impl.EzyAddCommandImpl in project ezyfox-server by youngmonkeys.
the class EzyAddCommandImplTest method test.
@Test
public void test() {
EzyAbstractContext ctx = spy(EzyAbstractContext.class);
ctx.init();
EzyAddCommandImpl cmd = new EzyAddCommandImpl(ctx);
cmd.add(Cmd.class, Cmd::new);
}
use of com.tvd12.ezyfoxserver.command.impl.EzyAddCommandImpl in project ezyfox-server by youngmonkeys.
the class EzyAbstractContext method init.
@Override
public final void init() {
this.commandSuppliers = defaultCommandSuppliers();
this.handleException = new EzyHandleExceptionImpl(component);
this.properties.put(EzyHandleException.class, handleException);
this.properties.put(EzyAddCommand.class, new EzyAddCommandImpl(this));
this.properties.put(EzyAddExceptionHandler.class, new EzyAddExceptionHandlerImpl(component));
this.doInit();
}
Aggregations