mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-148477 Handle AssertJ assertions in the same way as JUnit assertions
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user