robfletcher
03/11/2019, 8:35 PMrobfletcher
03/11/2019, 8:35 PMCasey Brooks
03/11/2019, 8:38 PM-classpath
arg passed to Dokka, which will make the external lib strings show up, isn’t the actual runtime classpath, it’s just a generic arg that Dokka does some magic withrobfletcher
03/11/2019, 8:43 PMrobfletcher
03/11/2019, 8:44 PMCasey Brooks
03/11/2019, 8:49 PMCasey Brooks
03/11/2019, 8:49 PMrobfletcher
03/11/2019, 8:56 PMrobfletcher
03/11/2019, 9:07 PMrobfletcher
03/12/2019, 5:44 AMdave08
03/12/2019, 6:30 PMrobfletcher
03/12/2019, 6:32 PMhasEntry
but it’s just an equality check on key and value, if you want to do a different assertion on the value you can’t do it in a single step right nowrobfletcher
03/12/2019, 6:33 PMassertThat(aMapOfStringToInt).get("foo").isNotNull().isGreaterThan(3)
robfletcher
03/12/2019, 6:34 PMassertThat(aMap).hasEntry("foo", 3)
is the simple form, but it’s equivalent to just isEqualTo
on the valuedave08
03/12/2019, 6:34 PMdave08
03/12/2019, 6:35 PMexpectThat(result)
.get("key1")
.get("nested key")
.isA<Collection<String>>()
.containsExactly("thumbnail")
robfletcher
03/12/2019, 6:35 PMisA
?robfletcher
03/12/2019, 6:36 PMget("key1")
might be null
?dave08
03/12/2019, 6:37 PMrobfletcher
03/12/2019, 6:38 PM.isNotNull()
between the 2 get
calls?dave08
03/12/2019, 6:39 PMrobfletcher
03/12/2019, 6:39 PMget(String)
can return null
(if the map does not have anything under that key)robfletcher
03/12/2019, 6:39 PMisNotNull
then narrows the type by asserting it’s not nullrobfletcher
03/12/2019, 6:40 PMget
robfletcher
03/12/2019, 6:45 PMget
on a null
maprobfletcher
03/12/2019, 6:47 PMget
assert that the result is non-null but then you couldn’t do expectThat(aMap).get("foo").isNull()
dave08
03/13/2019, 11:40 AMgetValue
like the distinction in Kotlin's standard library...robfletcher
03/13/2019, 1:30 PMrobfletcher
03/13/2019, 4:42 PMrobfletcher
03/13/2019, 4:43 PM