package io.github.tobyhs.weatherweight;

import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;

import io.github.tobyhs.weatherweight.test.BaseTestCase;
import io.github.tobyhs.weatherweight.util.SchedulerProvider;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

public class AppModuleTest extends BaseTestCase {
    @Mock private App app;
    @InjectMocks private AppModule module;

    @Test
    public void testProvideContext() {
        assertThat(module.provideApp(), is(app));
    }

    @Test
    public void testSchedulerProvider() {
        Class schedulerProviderCls = module.provideSchedulerProvider().getClass();
        assertThat(schedulerProviderCls, is(equalTo((Class) SchedulerProvider.class)));
    }
}

@@ -544,15 +544,11 @@
 vide
-Context
+App
 () %7B
@@ -635,16 +635,23 @@
 oid test
+Provide
 Schedule

Fix typos in AppModuleTest method names