Converted ArrayList to List (tokenizer, etc.) whenever possible.
This commit is contained in:
parent
5a669601da
commit
ece6ae98a0
7 changed files with 26 additions and 32 deletions
|
@ -52,7 +52,7 @@ class LookupTest {
|
|||
@Throws(Exception::class)
|
||||
fun testWhois() {
|
||||
val result = whois("17.178.96.59", Lookup.WHOIS_HOST)
|
||||
Assertions.assertThat(Arrays.stream(result).anyMatch { m: String -> m.contains("Apple Inc.") })
|
||||
Assertions.assertThat(result.stream().anyMatch { m: String -> m.contains("Apple Inc.") })
|
||||
.`as`("whois(17.178.96.59/Apple Inc.").isTrue
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue