From ac22e687ed9275ccb774b0330a023256bd854300 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 25 Jul 2016 02:55:46 -0800 Subject: [PATCH] More refactoring. --- src/test/kotlin/com/beust/kobalt/ContextTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/kotlin/com/beust/kobalt/ContextTest.kt b/src/test/kotlin/com/beust/kobalt/ContextTest.kt index 25441f0f..2d75df9c 100644 --- a/src/test/kotlin/com/beust/kobalt/ContextTest.kt +++ b/src/test/kotlin/com/beust/kobalt/ContextTest.kt @@ -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)) } }