mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Delete JavaProject/KotlinProject.
This commit is contained in:
parent
914f2527a6
commit
403a3eccf4
6 changed files with 12 additions and 73 deletions
|
@ -1,8 +1,8 @@
|
|||
package com.beust.kobalt
|
||||
|
||||
import com.beust.kobalt.api.Project
|
||||
import com.beust.kobalt.api.buildType
|
||||
import com.beust.kobalt.api.productFlavor
|
||||
import com.beust.kobalt.plugin.java.JavaProject
|
||||
import org.testng.Assert
|
||||
import org.testng.annotations.DataProvider
|
||||
import org.testng.annotations.Test
|
||||
|
@ -12,21 +12,21 @@ class VariantTest : KobaltTest() {
|
|||
|
||||
@DataProvider(name = "projectVariants")
|
||||
fun projectVariants() = arrayOf(
|
||||
arrayOf(emptySet<String>(), JavaProject().apply {
|
||||
arrayOf(emptySet<String>(), Project().apply {
|
||||
}),
|
||||
arrayOf(hashSetOf("compileDev"), JavaProject().apply {
|
||||
arrayOf(hashSetOf("compileDev"), Project().apply {
|
||||
productFlavor("dev") {}
|
||||
}),
|
||||
arrayOf(hashSetOf("compileDev", "compileProd"), JavaProject().apply {
|
||||
arrayOf(hashSetOf("compileDev", "compileProd"), Project().apply {
|
||||
productFlavor("dev") {}
|
||||
productFlavor("prod") {}
|
||||
}),
|
||||
arrayOf(hashSetOf("compileDevDebug"), JavaProject().apply {
|
||||
arrayOf(hashSetOf("compileDevDebug"), Project().apply {
|
||||
productFlavor("dev") {}
|
||||
buildType("debug") {}
|
||||
}),
|
||||
arrayOf(hashSetOf("compileDevRelease", "compileDevDebug", "compileProdDebug", "compileProdRelease"),
|
||||
JavaProject().apply {
|
||||
Project().apply {
|
||||
productFlavor("dev") {}
|
||||
productFlavor("prod") {}
|
||||
buildType("debug") {}
|
||||
|
@ -36,7 +36,7 @@ class VariantTest : KobaltTest() {
|
|||
|
||||
@Test(dataProvider = "projectVariants", description =
|
||||
"Make sure we generate the correct dynamic tasks based on the product flavor and build types.")
|
||||
fun taskNamesShouldWork(expected: Set<String>, project: JavaProject) {
|
||||
fun taskNamesShouldWork(expected: Set<String>, project: Project) {
|
||||
val variantNames = HashSet(Variant.allVariants(project).map { it.toTask("compile") })
|
||||
Assert.assertEquals(variantNames, expected)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue