Cleanup.
This commit is contained in:
parent
4caeababe8
commit
9d483eccf4
3 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ A generic `apiCall()` function is available to access other [API data endpoints]
|
|||
```kotlin
|
||||
apiCall(paths = listOf("prices", "BTC-USD", "buy"), params = emptyMap())
|
||||
```
|
||||
will return:
|
||||
will return something like:
|
||||
|
||||
```json
|
||||
{"data":{"base":"BTC","currency":"USD","amount":"58977.17"}}
|
||||
|
|
|
@ -27,6 +27,6 @@ tasks {
|
|||
register<JavaExec>("runJava") {
|
||||
group = "application"
|
||||
main = "com.example.CryptoPriceSample"
|
||||
classpath = sourceSets["main"].runtimeClasspath
|
||||
classpath = sourceSets.main.get().runtimeClasspath
|
||||
}
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ class CryptoPriceTest {
|
|||
assertFailsWith(
|
||||
message = "no base did not fail",
|
||||
exceptionClass = CryptoException::class,
|
||||
block = { json.replace("base","food").toPrice() }
|
||||
block = { json.replace("base","foo").toPrice() }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue