package com.thebluealliance.androidclient.di;
import com.thebluealliance.androidclient.datafeed.APICache;
import com.thebluealliance.androidclient.renderers.AwardRenderer;
import com.thebluealliance.androidclient.renderers.DistrictPointBreakdownRenderer;
import com.thebluealliance.androidclient.renderers.DistrictRenderer;
import com.thebluealliance.androidclient.renderers.DistrictTeamRenderer;
import com.thebluealliance.androidclient.renderers.EventRenderer;
import com.thebluealliance.androidclient.renderers.MatchRenderer;
import com.thebluealliance.androidclient.renderers.MediaRenderer;
import com.thebluealliance.androidclient.renderers.ModelRendererSupplier;
import com.thebluealliance.androidclient.renderers.MyTbaModelRenderer;
import com.thebluealliance.androidclient.renderers.TeamRenderer;
import org.mockito.Mockito;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
@Module(includes = MockDatafeedModule.class)
public class MockRendererModule {
@Provides @Singleton
public MyTbaModelRenderer provideMyTbaModelRenderer(
APICache cache,
EventRenderer eventRenderer,
TeamRenderer teamRenderer,
MatchRenderer matchRenderer,
DistrictRenderer districtRenderer) {
return Mockito.mock(MyTbaModelRenderer.class);
}
@Provides @Singleton
public EventRenderer provideEventRenderer(APICache cache) {
return Mockito.mock(EventRenderer.class);
}
@Provides @Singleton
public AwardRenderer provideAwardRenderer(APICache cache) {
return Mockito.mock(AwardRenderer.class);
}
@Provides @Singleton
public TeamRenderer provideTeamRenderer(APICache cache) {
return Mockito.mock(TeamRenderer.class);
}
@Provides @Singleton
public MatchRenderer provideMatchRenderer(APICache cache) {
return Mockito.mock(MatchRenderer.class);
}
@Provides @Singleton
public DistrictRenderer provideDistrictRenderer(APICache cache) {
return Mockito.mock(DistrictRenderer.class);
}
@Provides @Singleton
public MediaRenderer provideMediaRenderer() {
return Mockito.mock(MediaRenderer.class);
}
@Provides @Singleton
public DistrictPointBreakdownRenderer provideDistrictPointBreakdownRenderer() {
return Mockito.mock(DistrictPointBreakdownRenderer.class);
}
@Provides @Singleton
public DistrictTeamRenderer provideDistrictTeamRenderer() {
return Mockito.mock(DistrictTeamRenderer.class);
}
@Provides @Singleton
public ModelRendererSupplier provideModelRendererSupplier(
AwardRenderer awardRenderer,
DistrictPointBreakdownRenderer districtPointBreakdownRenderer,
DistrictTeamRenderer districtTeamRenderer,
EventRenderer eventRenderer,
TeamRenderer teamRenderer,
MatchRenderer matchRenderer,
MediaRenderer mediaRenderer,
DistrictRenderer districtRenderer) {
return Mockito.mock(ModelRendererSupplier.class);
}
}