mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
(cherry picked from commit 0d22d640ea4ee77a6bdfb5b4af504332e7456b68) IJ-MR-150371 GitOrigin-RevId: 04a5fe47cf874ae78c5ad73282b55123f55e84cb
21 lines
492 B
Java
21 lines
492 B
Java
// "Assert with JUnit 4 'Assert.assertNotNull(s)'" "true-preview"
|
|
|
|
import org.jetbrains.annotations.Nullable;
|
|
import org.junit.Assert;
|
|
import org.junit.Test;
|
|
|
|
import static org.junit.Assert.assertTrue;
|
|
|
|
public final class SomeJUnit4Test {
|
|
@Nullable
|
|
native String getNullableString();
|
|
|
|
@Test
|
|
public void test() {
|
|
String s = getNullableString();
|
|
Assert.assertNotNull(s);
|
|
//noinspection SimplifiableConditionalExpression
|
|
assertTrue(s.isEmpty() ? true : false);
|
|
}
|
|
}
|