mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Not needed.
This commit is contained in:
parent
ac96f92b29
commit
bbadd4904d
1 changed files with 3 additions and 4 deletions
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue