Converted ArrayList to List (tokenizer, etc.) whenever possible.

This commit is contained in:
Erik C. Thauvin 2020-12-05 14:45:43 -08:00
parent 5a669601da
commit ece6ae98a0
7 changed files with 26 additions and 32 deletions

View file

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