Returns a
if a
is not null
.
Returns a
if a
is not null
.
a
if a
is not null
.
import com.thoughtworks.dsl.keywords.NullSafe._ val o = new AnyRef NotNull(o) should be(o)
if a
is null
.
import com.thoughtworks.dsl.keywords.NullSafe._ a[NullPointerException] should be thrownBy { NotNull(null) }