package com.tvd12.ezyfoxserver.testing.command;

import com.tvd12.ezyfoxserver.EzySimpleApplication;
import com.tvd12.ezyfoxserver.context.EzyAppContext;
import com.tvd12.ezyfoxserver.setting.EzySimpleAppSetting;
import com.tvd12.ezyfoxserver.testing.BaseCoreTest;
import com.tvd12.ezyfoxserver.wrapper.impl.EzyEventControllersImpl;
import org.testng.annotations.Test;

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

public class EzyAppFireEventImplTest extends BaseCoreTest {

    @Test
    public void test() {
        EzySimpleAppSetting app = mock(EzySimpleAppSetting.class);
        EzyAppContext context = mock(EzyAppContext.class);

        EzySimpleApplication application = new EzySimpleApplication();
        application.setEventControllers(new EzyEventControllersImpl());
        application.setSetting(app);

        when(context.getApp()).thenReturn(application);
    }
}
