Fixed tests.

This commit is contained in:
Erik C. Thauvin 2021-03-11 18:16:17 -08:00
parent 8815cde78f
commit 6b5e8ab1ff
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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 {