Apply hard-coded contract to Assume.assumeThat

Change-Id: I35f88942f58c295b9a7343fc28496f54fc8f4b80
This commit is contained in:
Dana Dahlstrom
2016-07-18 18:59:38 -07:00
parent 9ab16ef854
commit f258f4ae01
3 changed files with 25 additions and 1 deletions
@@ -0,0 +1,11 @@
import org.hamcrest.CoreMatchers;
import org.jetbrains.annotations.Nullable;
import static org.junit.Assume.assumeThat;
class Contracts {
private void checkNotNullValue(@Nullable Object o) {
assumeThat(o, CoreMatchers.<Object>notNullValue());
System.out.println(o.hashCode());
}
}