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
|
```kotlin
|
||||||
apiCall(paths = listOf("prices", "BTC-USD", "buy"), params = emptyMap())
|
apiCall(paths = listOf("prices", "BTC-USD", "buy"), params = emptyMap())
|
||||||
```
|
```
|
||||||
will return:
|
will return something like:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{"data":{"base":"BTC","currency":"USD","amount":"58977.17"}}
|
{"data":{"base":"BTC","currency":"USD","amount":"58977.17"}}
|
||||||
|
|
|
@ -27,6 +27,6 @@ tasks {
|
||||||
register<JavaExec>("runJava") {
|
register<JavaExec>("runJava") {
|
||||||
group = "application"
|
group = "application"
|
||||||
main = "com.example.CryptoPriceSample"
|
main = "com.example.CryptoPriceSample"
|
||||||
classpath = sourceSets["main"].runtimeClasspath
|
classpath = sourceSets.main.get().runtimeClasspath
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@ class CryptoPriceTest {
|
||||||
assertFailsWith(
|
assertFailsWith(
|
||||||
message = "no base did not fail",
|
message = "no base did not fail",
|
||||||
exceptionClass = CryptoException::class,
|
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