mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-01 04:20:56 +07:00
16 lines
392 B
Java
16 lines
392 B
Java
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();
|
|
}
|
|
} |