Fixed tests.
This commit is contained in:
parent
8815cde78f
commit
6b5e8ab1ff
2 changed files with 3 additions and 3 deletions
|
@ -43,8 +43,8 @@ class LookupTest {
|
|||
@Test
|
||||
@Throws(Exception::class)
|
||||
fun testLookup() {
|
||||
val result = lookup("erik.thauvin.net")
|
||||
Assertions.assertThat(result).`as`("lookup(erik.thauvin.net/104.31.77.12)").contains("104.31.77.12")
|
||||
val result = lookup("apple.com")
|
||||
Assertions.assertThat(result).`as`("lookup(apple.com)").contains("17.253.144.10")
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -48,7 +48,7 @@ class StockQuoteTest : LocalProperties() {
|
|||
val messages = getQuote("apple inc", apiKey)
|
||||
Assertions.assertThat(messages).`as`("response not empty").isNotEmpty
|
||||
Assertions.assertThat(messages[0].msg).`as`("same stock symbol")
|
||||
.isEqualTo("Symbol: AAPL [Apple Inc.]")
|
||||
.startsWith("Symbol: AAPL")
|
||||
Assertions.assertThat(messages[1].msg).`as`("price label")
|
||||
.startsWith(" Price: ")
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue