AfterAssertTrueDfa test (IDEA-228920)

GitOrigin-RevId: b69d983dcb774c804560d11048a3bbcaf24aa619
This commit is contained in:
Tagir Valeev
2019-12-12 11:02:16 +00:00
committed by intellij-monorepo-bot
parent 8edfa0cddc
commit 902241f677
3 changed files with 33 additions and 0 deletions
@@ -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();
}
}