Uses compareTo to verify that comp is greater than other Uses pare to verify that comp is equal to other Uses compareTo to verify that comp is equal to otherĬomp.shouldBeEqualComparingTo(other, comparator) Uses compareTo to verify that comp is less than or equal to other Uses compareTo to verify that comp is less than other Obj.shouldHaveAnnotation(annotationClass)Īsserts that the object has an annotation of the given type. Ie, 1 should beOfType would fail because although 1 is a Number, the runtime type is not Number.Īsserts that the given reference is of type T or a subclass of T. Verifies that a block of code throws any Throwable with given messageĬompares objects by identity, that is, they are the same exact reference.Īsserts that the given reference is exactly of type T. General purpose construct that asserts that the block throws a Throwable of any type General purpose construct that asserts that the block throws exactly T General purpose construct that asserts that the block throws a T Throwable or a subtype of T Equivalent to expr.shouldBe(true)Ĭonvenience assertion that the expression is false. General purpose assertion that the given obj and other are both equalĬonvenience assertion that the expression is true. Matchers provided by the kotest-assertions-core module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |