mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 16:19:58 +07:00
AfterAssertTrueDfa test (IDEA-228920)
GitOrigin-RevId: b69d983dcb774c804560d11048a3bbcaf24aa619
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8edfa0cddc
commit
902241f677
@@ -0,0 +1,16 @@
|
||||
import java.util.*;
|
||||
|
||||
public class ExampleTest {
|
||||
public void testSmth() {
|
||||
Map<String, Object> data = doWork();
|
||||
Object value = data.get("name");
|
||||
assertTrue(value instanceof Map);
|
||||
value.getO<caret>
|
||||
}
|
||||
|
||||
native Map<String, Object> doWork();
|
||||
|
||||
static void assertTrue(boolean b) {
|
||||
if (!b) throw new AssertionError();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import java.util.*;
|
||||
|
||||
public class ExampleTest {
|
||||
public void testSmth() {
|
||||
Map<String, Object> data = doWork();
|
||||
Object value = data.get("name");
|
||||
assertTrue(value instanceof Map);
|
||||
((Map) value).getOrDefault()
|
||||
}
|
||||
|
||||
native Map<String, Object> doWork();
|
||||
|
||||
static void assertTrue(boolean b) {
|
||||
if (!b) throw new AssertionError();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user