use of com.tvd12.ezyfoxserver.command.impl.EzyAddExceptionHandlerImpl in project ezyfox-server by youngmonkeys.
the class EzyAddExceptionHandlerImplTest method test.
@Test
public void test() {
EzyExceptionHandlersFetcher fetcher = mock(EzyExceptionHandlersFetcher.class);
EzyExceptionHandlers handlers = mock(EzyExceptionHandlers.class);
when(fetcher.getExceptionHandlers()).thenReturn(handlers);
EzyAddExceptionHandlerImpl cmd = new EzyAddExceptionHandlerImpl(fetcher);
cmd.add(mock(EzyExceptionHandler.class));
}
use of com.tvd12.ezyfoxserver.command.impl.EzyAddExceptionHandlerImpl 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