Fixed Google search test.
This commit is contained in:
parent
bd14a1e15e
commit
bf985d5626
2 changed files with 6 additions and 6 deletions
|
@ -47,9 +47,9 @@ class GoogleSearchTest : LocalProperties() {
|
|||
val apiKey = getProperty(GoogleSearch.GOOGLE_API_KEY_PROP)
|
||||
val cseKey = getProperty(GoogleSearch.GOOGLE_CSE_KEY_PROP)
|
||||
try {
|
||||
var messages = searchGoogle("mobibot site:github.com", apiKey, cseKey)
|
||||
assertThat(messages).`as`("mobibot results not empty").isNotEmpty
|
||||
assertThat(messages[0].msg).`as`("found mobitopia").contains("mobibot")
|
||||
var messages = searchGoogle("mobitopia", apiKey, cseKey)
|
||||
assertThat(messages).`as`("mobitopia results not empty").isNotEmpty
|
||||
assertThat(messages[0].msg).`as`("found freenode").contains("freenode")
|
||||
messages = searchGoogle("aapl", apiKey, cseKey)
|
||||
assertThat(messages).`as`("aapl results not empty").isNotEmpty
|
||||
assertThat(messages[0].msg).`as`("found apple").containsIgnoringCase("apple")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue