mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
More refactoring.
This commit is contained in:
parent
bee50ce50f
commit
ac22e687ed
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ class ContextTest @Inject constructor(override val aether: KobaltAether): BaseTe
|
||||||
|
|
||||||
@Test(dataProvider = "dp", description = "Test KobaltContext#fileForId")
|
@Test(dataProvider = "dp", description = "Test KobaltContext#fileForId")
|
||||||
fun fileForIdShouldWork(fileType: KobaltContext.FileType, expectedFileName: String) {
|
fun fileForIdShouldWork(fileType: KobaltContext.FileType, expectedFileName: String) {
|
||||||
runTest(id, fileType, listOf(REPO_PATH, GROUP.replace('.', File.separatorChar), ARTIFACT, VERSION,
|
runTest(id, fileType, expected = listOf(REPO_PATH, GROUP.replace('.', File.separatorChar), ARTIFACT, VERSION,
|
||||||
expectedFileName)
|
expectedFileName)
|
||||||
.joinToString(File.separator))
|
.joinToString(File.separator))
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ class ContextTest @Inject constructor(override val aether: KobaltAether): BaseTe
|
||||||
@Test(description = "Test KobaltContext#fileForId for the OTHER file type")
|
@Test(description = "Test KobaltContext#fileForId for the OTHER file type")
|
||||||
fun fileForIdOther() {
|
fun fileForIdOther() {
|
||||||
runTest("io.reactivex:rxandroid:aar:1.0.1", KobaltContext.FileType.OTHER,
|
runTest("io.reactivex:rxandroid:aar:1.0.1", KobaltContext.FileType.OTHER,
|
||||||
listOf(REPO_PATH, "io/reactivex/rxandroid/1.0.1/rxandroid-1.0.1.aar")
|
expected = listOf(REPO_PATH, "io/reactivex/rxandroid/1.0.1/rxandroid-1.0.1.aar")
|
||||||
.joinToString(File.separator))
|
.joinToString(File.separator))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue