Open
Description
As a developer, I like to write some test code like:
import static org.junit.jupiter.api.Assertions.assertNotNull;
...
Foo foo = assertNotNull(bar.doSomething()).getFoo();
Deliverables
- An
Assertions.assertNotNull()
that returns its input and notvoid
. - You could make the same argument for
assertSame()