From 6b5e8ab1ff3aaf0e1e487921700669c7a0f92998 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Thu, 11 Mar 2021 18:16:17 -0800 Subject: [PATCH] Fixed tests. --- src/test/java/net/thauvin/erik/mobibot/modules/LookupTest.kt | 4 ++-- .../java/net/thauvin/erik/mobibot/modules/StockQuoteTest.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/net/thauvin/erik/mobibot/modules/LookupTest.kt b/src/test/java/net/thauvin/erik/mobibot/modules/LookupTest.kt index ed57c8e..fdbb51c 100644 --- a/src/test/java/net/thauvin/erik/mobibot/modules/LookupTest.kt +++ b/src/test/java/net/thauvin/erik/mobibot/modules/LookupTest.kt @@ -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 diff --git a/src/test/java/net/thauvin/erik/mobibot/modules/StockQuoteTest.kt b/src/test/java/net/thauvin/erik/mobibot/modules/StockQuoteTest.kt index 08f12db..24d91d5 100644 --- a/src/test/java/net/thauvin/erik/mobibot/modules/StockQuoteTest.kt +++ b/src/test/java/net/thauvin/erik/mobibot/modules/StockQuoteTest.kt @@ -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 {