use of com.kickstarter.models.Category in project android-oss by kickstarter.
the class DiscoveryParamsTest method testShouldIncludeFeatured.
@Test
public void testShouldIncludeFeatured() {
final Category nonRootCategory = CategoryFactory.bluesCategory();
final DiscoveryParams nonRootParams = DiscoveryParams.builder().category(nonRootCategory).build();
assertEquals(false, nonRootParams.shouldIncludeFeatured());
final Category rootCategory = CategoryFactory.gamesCategory();
final DiscoveryParams rootParams = DiscoveryParams.builder().category(rootCategory).build();
assertEquals(true, rootParams.shouldIncludeFeatured());
}
Aggregations