@Test public void testOneFlavor() { List<String> output = toStringList(GoogleServicesPlugin.getJsonLocations("flavor/release", null)); assertThat(output) .containsAllOf( "src/release", "src/flavorRelease", "src/flavor", "src/flavor/release", "src/release/flavor"); }
@Test public void testOneFlavor() { List<String> output = toStringList(GoogleServicesPlugin.getJsonLocations("flavor/release", null)); assertThat(output) .containsAllOf( "src/release", "src/flavorRelease", "src/flavor", "src/flavor/release", "src/release/flavor"); }
@Test public void testNoFlavor() { List<String> output = toStringList(GoogleServicesPlugin.getJsonLocations("release", null)); assertThat(output).contains("src/release"); }
@Test public void testNoFlavor() { List<String> output = toStringList(GoogleServicesPlugin.getJsonLocations("release", null)); assertThat(output).contains("src/release"); }
@Test public void testMultipleFlavors() { List<String> output = toStringList(GoogleServicesPlugin.getJsonLocations("flavorTest/release", null)); assertThat(output) .containsAllOf( "src/release", "src/flavorRelease", "src/flavor", "src/flavor/release", "src/release/flavorTest", "src/flavorTest", "src/flavorTestRelease", "src/flavor/test/release", "src/flavor/testRelease"); }
@Test public void testMultipleFlavors() { List<String> output = toStringList(GoogleServicesPlugin.getJsonLocations("flavorTest/release", null)); assertThat(output) .containsAllOf( "src/release", "src/flavorRelease", "src/flavor", "src/flavor/release", "src/release/flavorTest", "src/flavorTest", "src/flavorTestRelease", "src/flavor/test/release", "src/flavor/testRelease"); }