Search in sources :

Example 1 with EzyEntry

use of com.tvd12.ezyfoxserver.ext.EzyEntry in project ezyfox-server by youngmonkeys.

the class EzyChildComponentTest method test.

@Test
public void test() {
    EzyChildComponent component = spy(EzyChildComponent.class);
    EzyEntry entry = mock(EzyEntry.class);
    component.setEntry(entry);
    assert component.getEntry() == entry;
    EzyEventControllers eventControllers = mock(EzyEventControllers.class);
    component.setEventControllers(eventControllers);
    assert component.getEventControllers() == eventControllers;
    component.destroy();
    component.destroy();
}
Also used : EzyEventControllers(com.tvd12.ezyfoxserver.wrapper.EzyEventControllers) EzyChildComponent(com.tvd12.ezyfoxserver.EzyChildComponent) EzyEntry(com.tvd12.ezyfoxserver.ext.EzyEntry) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Aggregations

EzyChildComponent (com.tvd12.ezyfoxserver.EzyChildComponent)1 EzyEntry (com.tvd12.ezyfoxserver.ext.EzyEntry)1 EzyEventControllers (com.tvd12.ezyfoxserver.wrapper.EzyEventControllers)1 BaseTest (com.tvd12.test.base.BaseTest)1 Test (org.testng.annotations.Test)1