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

More refactoring.

This commit is contained in:
Cedric Beust 2016-07-25 02:55:46 -08:00
parent bee50ce50f
commit ac22e687ed

View file

@ -35,7 +35,7 @@ class ContextTest @Inject constructor(override val aether: KobaltAether): BaseTe
@Test(dataProvider = "dp", description = "Test KobaltContext#fileForId")
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)
.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")
fun fileForIdOther() {
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))
}
}