https://kotlinlang.org logo
#kotlintest
Title
# kotlintest
s

sam

01/21/2019, 7:49 AM
Yeah so
Copy code
val person : Person? = ... possibly null person
person shouldNotBeNullAndRunTheseAssertionsAsWell { 
  it.name.shouldHaveLength(12)
  it.age should beGreaterThan(21)
}
is what you want ?
👍🏼 1