Does assertJ have overloads for primitive types? H...
# announcements
n
Does assertJ have overloads for primitive types? Hamcrest matchers are generics, so primitive booleans will be boxed into Boolean wrappers. If assertJ does not box the actual values, then you’ll need to change the instance-of check
đź’Ż 1
t
no overloads, the signatures are identical:
Copy code
instanceOf(java.lang.Class<?> type) // hamcrest
isInstanceOf(Class<?> type) // assertj
n
I meant the signature of assertThat
t
indeed it is!
thanks
j
fwiw, I've been reasonably happy with assertk. Not quite as full featured as assertj, but might be avoiding some of the issues you guys are having?
m
Take a look at Atrium. It’s very close to AssertJ, but Kotlin specific.