Skip to content

Commit

Permalink
Update dependency com.github.ajalt.clikt:clikt to v4 (#1068)
Browse files Browse the repository at this point in the history
* Update dependency com.github.ajalt.clikt:clikt to v4

* Update assertion on missing options

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <[email protected]>
  • Loading branch information
renovate[bot] and JakeWharton authored Sep 14, 2023
1 parent 76d3a44 commit 5625388
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ okHttp-core = { module = "com.squareup.okhttp3:okhttp", version.ref = "okHttp" }
okHttp-mockWebServer = { module = "com.squareup.okhttp3:mockwebserver", version.ref = "okHttp" }
okio-core = { module = "com.squareup.okio:okio", version.ref = "okio" }
okio-fakeFileSystem = { module = "com.squareup.okio:okio-fakefilesystem", version.ref = "okio" }
clikt = { module = "com.github.ajalt.clikt:clikt", version = "3.5.4" }
clikt = { module = "com.github.ajalt.clikt:clikt", version = "4.0.0" }
shadowJar-gradle-plugin = { module = "gradle.plugin.com.github.johnrengelman:shadow", version = "8.0.0" }
sqldelight-gradle-plugin = { module = "com.squareup.sqldelight:gradle-plugin", version.ref = "sqldelight" }
sqldelight-driver-android = { module = "com.squareup.sqldelight:android-driver", version.ref = "sqldelight" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ class DownloadTest {
val exception = assertFailsWith<MissingOption> {
runCommand("-D", TMP_DIR_PATH.toString(), "-M", "test.cash.app")
}
assertEquals("Missing option \"--application-name\"", exception.message)
assertEquals("--application-name", exception.paramName)
}

@Test fun downloadMissingManifestUrl() {
val exception = assertFailsWith<MissingOption> {
runCommand("-A", "app1", "-D", TMP_DIR_PATH.toString())
}
assertEquals("Missing option \"--manifest-url\"", exception.message)
assertEquals("--manifest-url", exception.paramName)
}

@Test fun downloadMissingDownloadDir() {
val exception = assertFailsWith<MissingOption> {
runCommand("-A", "app1", "-M", "test.cash.app")
}
assertEquals("Missing option \"--download-dir\"", exception.message)
assertEquals("--download-dir", exception.paramName)
}

@Test fun downloadFromMockWebServer() {
Expand Down

0 comments on commit 5625388

Please sign in to comment.