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 @Test
@Throws(Exception::class) @Throws(Exception::class)
fun testLookup() { fun testLookup() {
val result = lookup("erik.thauvin.net") val result = lookup("apple.com")
Assertions.assertThat(result).`as`("lookup(erik.thauvin.net/104.31.77.12)").contains("104.31.77.12") Assertions.assertThat(result).`as`("lookup(apple.com)").contains("17.253.144.10")
} }
@Test @Test

View file

@ -48,7 +48,7 @@ class StockQuoteTest : LocalProperties() {
val messages = getQuote("apple inc", apiKey) val messages = getQuote("apple inc", apiKey)
Assertions.assertThat(messages).`as`("response not empty").isNotEmpty Assertions.assertThat(messages).`as`("response not empty").isNotEmpty
Assertions.assertThat(messages[0].msg).`as`("same stock symbol") 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") Assertions.assertThat(messages[1].msg).`as`("price label")
.startsWith(" Price: ") .startsWith(" Price: ")
try { try {