Search in sources :

Example 1 with EzyAbstractContext

use of com.tvd12.ezyfoxserver.context.EzyAbstractContext 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);
}
Also used : EzyAbstractContext(com.tvd12.ezyfoxserver.context.EzyAbstractContext) EzyAddCommandImpl(com.tvd12.ezyfoxserver.command.impl.EzyAddCommandImpl) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Aggregations

EzyAddCommandImpl (com.tvd12.ezyfoxserver.command.impl.EzyAddCommandImpl)1 EzyAbstractContext (com.tvd12.ezyfoxserver.context.EzyAbstractContext)1 BaseTest (com.tvd12.test.base.BaseTest)1 Test (org.testng.annotations.Test)1