1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Not needed.

This commit is contained in:
Cedric Beust 2017-03-15 12:20:36 -07:00
parent ac96f92b29
commit bbadd4904d

View file

@ -6,7 +6,6 @@ import com.beust.kobalt.api.Kobalt
import com.beust.kobalt.app.BuildFileCompiler import com.beust.kobalt.app.BuildFileCompiler
import com.beust.kobalt.maven.DependencyManager import com.beust.kobalt.maven.DependencyManager
import com.beust.kobalt.maven.aether.Scope import com.beust.kobalt.maven.aether.Scope
import com.beust.kobalt.misc.KobaltLogger
import com.google.inject.Inject import com.google.inject.Inject
import org.assertj.core.api.Assertions.assertThat import org.assertj.core.api.Assertions.assertThat
import org.testng.annotations.DataProvider import org.testng.annotations.DataProvider
@ -21,12 +20,12 @@ class ExcludeTest @Inject constructor(compilerFactory: BuildFileCompiler.IFactor
@DataProvider @DataProvider
fun dp() = arrayOf<Array<String?>>( fun dp() = arrayOf<Array<String?>>(
arrayOf("p1", null), arrayOf(null),
arrayOf("p2", EXCLUDED_DEPENDENCY) arrayOf(EXCLUDED_DEPENDENCY)
) )
@Test(dataProvider = "dp") @Test(dataProvider = "dp")
fun excludeShouldWork(projectName: String, excludedDependency: String?) { fun excludeShouldWork(excludedDependency: String?) {
val projectText = """ val projectText = """
dependencies { dependencies {
compile("org.apache.maven:maven-model:jar:3.3.9") compile("org.apache.maven:maven-model:jar:3.3.9")