IDEA-148477 Handle AssertJ assertions in the same way as JUnit assertions

This commit is contained in:
peter
2015-11-26 08:28:04 +01:00
parent b698c0059a
commit ab6ec15175
3 changed files with 17 additions and 0 deletions
@@ -1,5 +1,6 @@
import org.hamcrest.CoreMatchers;
import org.jetbrains.annotations.Nullable;
import org.assertj.core.api.Assertions;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.assertThat;
@@ -15,4 +16,9 @@ class Contracts {
int length = test.length();
}
public void checkAssertJ(@Nullable Object object) {
Assertions.assertThat(object).isNotNull();
System.out.println(object.toString());
}
}