use of jadx.core.dex.nodes.ClassNode in project jadx by skylot.
the class TestArrayFillConstReplace method test.
@Test
public void test() {
ClassNode cls = getClassNode(TestCls.class);
String code = cls.getCode().toString();
assertThat(code, containsOne("return new int[]{127, 129, CONST_INT};"));
}
use of jadx.core.dex.nodes.ClassNode in project jadx by skylot.
the class TestArrays method test.
@Test
public void test() {
noDebugInfo();
ClassNode cls = getClassNode(TestCls.class);
String code = cls.getCode().toString();
assertThat(code, containsOne("return new int[]{1, 2, 3, 5}[i];"));
}
use of jadx.core.dex.nodes.ClassNode in project jadx by skylot.
the class TestArrays2 method test.
@Test
public void test() {
noDebugInfo();
ClassNode cls = getClassNode(TestCls.class);
String code = cls.getCode().toString();
assertThat(code, containsOne("new int[]{1, 2}"));
}
use of jadx.core.dex.nodes.ClassNode in project jadx by skylot.
the class TestCmpOp2 method test.
@Test
public void test() {
ClassNode cls = getClassNode(TestCls.class);
String code = cls.getCode().toString();
assertThat(code, containsString("return a > b;"));
assertThat(code, containsString("return ((double) c) < d;"));
}
use of jadx.core.dex.nodes.ClassNode in project jadx by skylot.
the class TestConditions method test.
@Test
public void test() {
ClassNode cls = getClassNode(TestCls.class);
String code = cls.getCode().toString();
assertThat(code, not(containsString("(!a || !b) && !c")));
assertThat(code, containsString("return (a && b) || c;"));
}
Aggregations