Commit d55cd5fb authored by Skylot's avatar Skylot

core tests: organize directories

parent 13a6b1c8
package jadx.api;
import jadx.core.dex.nodes.RootNode;
public class JadxInternalAccess {
public static RootNode getRoot(JadxDecompiler d) {
return d.getRoot();
}
}
package jadx.api; package jadx.tests.api;
import jadx.api.JadxInternalAccess;
import jadx.api.DefaultJadxArgs;
import jadx.api.JadxDecompiler;
import jadx.core.Jadx; import jadx.core.Jadx;
import jadx.core.dex.attributes.AFlag; import jadx.core.dex.attributes.AFlag;
import jadx.core.dex.attributes.AType; import jadx.core.dex.attributes.AType;
...@@ -9,6 +12,7 @@ import jadx.core.dex.visitors.DepthTraversal; ...@@ -9,6 +12,7 @@ import jadx.core.dex.visitors.DepthTraversal;
import jadx.core.dex.visitors.IDexTreeVisitor; import jadx.core.dex.visitors.IDexTreeVisitor;
import jadx.core.utils.exceptions.JadxException; import jadx.core.utils.exceptions.JadxException;
import jadx.core.utils.files.FileUtils; import jadx.core.utils.files.FileUtils;
import jadx.tests.api.utils.TestUtils;
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
...@@ -27,7 +31,7 @@ import static org.junit.Assert.assertThat; ...@@ -27,7 +31,7 @@ import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail; import static org.junit.Assert.fail;
public abstract class InternalJadxTest extends TestUtils { public abstract class IntegrationTest extends TestUtils {
protected boolean outputCFG = false; protected boolean outputCFG = false;
protected boolean isFallback = false; protected boolean isFallback = false;
...@@ -52,7 +56,7 @@ public abstract class InternalJadxTest extends TestUtils { ...@@ -52,7 +56,7 @@ public abstract class InternalJadxTest extends TestUtils {
} catch (JadxException e) { } catch (JadxException e) {
fail(e.getMessage()); fail(e.getMessage());
} }
ClassNode cls = d.getRoot().searchClassByName(clsName); ClassNode cls = JadxInternalAccess.getRoot(d).searchClassByName(clsName);
assertNotNull("Class not found: " + clsName, cls); assertNotNull("Class not found: " + clsName, cls);
assertEquals(cls.getFullName(), clsName); assertEquals(cls.getFullName(), clsName);
......
package jadx.api; package jadx.tests.api;
import jadx.core.Consts; import jadx.core.Consts;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
...@@ -11,7 +11,7 @@ import org.jf.smali.main; ...@@ -11,7 +11,7 @@ import org.jf.smali.main;
import static org.junit.Assert.fail; import static org.junit.Assert.fail;
public class SmaliTest extends InternalJadxTest { public class SmaliTest extends IntegrationTest {
private static final String SMALI_TESTS_PROJECT = "jadx-core"; private static final String SMALI_TESTS_PROJECT = "jadx-core";
private static final String SMALI_TESTS_DIR = "src/test/smali"; private static final String SMALI_TESTS_DIR = "src/test/smali";
......
package jadx.tests.utils; package jadx.tests.api.utils;
import jadx.api.TestUtils;
import org.hamcrest.Description; import org.hamcrest.Description;
import org.hamcrest.core.SubstringMatcher; import org.hamcrest.core.SubstringMatcher;
......
package jadx.tests.utils; package jadx.tests.api.utils;
import jadx.api.TestUtils;
import jadx.core.codegen.CodeWriter; import jadx.core.codegen.CodeWriter;
import org.hamcrest.Matcher; import org.hamcrest.Matcher;
......
package jadx.api; package jadx.tests.api.utils;
import jadx.core.codegen.CodeWriter; import jadx.core.codegen.CodeWriter;
......
package jadx.tests.internal; package jadx.tests.integration;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestArgInline extends InternalJadxTest { public class TestArgInline extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal; package jadx.tests.integration;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestClassGen extends InternalJadxTest { public class TestClassGen extends IntegrationTest {
public static class TestCls { public static class TestCls {
public static interface I { public static interface I {
......
package jadx.tests.internal; package jadx.tests.integration;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.instructions.InsnType; import jadx.core.dex.instructions.InsnType;
import jadx.core.dex.instructions.args.InsnWrapArg; import jadx.core.dex.instructions.args.InsnWrapArg;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
...@@ -21,7 +21,7 @@ import static org.junit.Assert.assertTrue; ...@@ -21,7 +21,7 @@ import static org.junit.Assert.assertTrue;
* Test duplicate 'check-cast' instruction produced because of bug in javac: * Test duplicate 'check-cast' instruction produced because of bug in javac:
* http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6246854 * http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6246854
*/ */
public class TestDuplicateCast extends InternalJadxTest { public class TestDuplicateCast extends IntegrationTest {
public static class TestCls { public static class TestCls {
public int[] method(Object o) { public int[] method(Object o) {
......
package jadx.tests.internal; package jadx.tests.integration;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestFloatValue extends InternalJadxTest { public class TestFloatValue extends IntegrationTest {
public static class TestCls { public static class TestCls {
public float[] method() { public float[] method() {
......
package jadx.tests.internal; package jadx.tests.integration;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestRedundantBrackets extends InternalJadxTest { public class TestRedundantBrackets extends IntegrationTest {
public static class TestCls { public static class TestCls {
public boolean method(String str) { public boolean method(String str) {
......
package jadx.tests.internal; package jadx.tests.integration;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -10,7 +10,7 @@ import static org.hamcrest.CoreMatchers.not; ...@@ -10,7 +10,7 @@ import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail; import static org.junit.Assert.fail;
public class TestRedundantReturn extends InternalJadxTest { public class TestRedundantReturn extends IntegrationTest {
public static class TestCls { public static class TestCls {
public void test(int num) { public void test(int num) {
......
package jadx.tests.internal; package jadx.tests.integration;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestReturnWrapping extends InternalJadxTest { public class TestReturnWrapping extends IntegrationTest {
public static class TestCls { public static class TestCls {
public static int f1(int arg0) { public static int f1(int arg0) {
......
package jadx.tests.internal; package jadx.tests.integration;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestStaticFieldsInit extends InternalJadxTest { public class TestStaticFieldsInit extends IntegrationTest {
public static class TestCls { public static class TestCls {
public static final String s1 = "1"; public static final String s1 = "1";
......
package jadx.tests.internal; package jadx.tests.integration;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestStaticMethod extends InternalJadxTest { public class TestStaticMethod extends IntegrationTest {
public static class TestCls { public static class TestCls {
static { static {
......
package jadx.tests.internal; package jadx.tests.integration;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestStringBuilderElimination extends InternalJadxTest { public class TestStringBuilderElimination extends IntegrationTest {
public static class MyException extends Exception { public static class MyException extends Exception {
private static final long serialVersionUID = 4245254480662372757L; private static final long serialVersionUID = 4245254480662372757L;
......
package jadx.tests.internal; package jadx.tests.integration;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestWrongCode extends InternalJadxTest { public class TestWrongCode extends IntegrationTest {
public static class TestCls { public static class TestCls {
private int test() { private int test() {
......
package jadx.tests.internal.annotations; package jadx.tests.integration.annotations;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestAnnotations extends InternalJadxTest { public class TestAnnotations extends IntegrationTest {
public static class TestCls { public static class TestCls {
private static @interface A { private static @interface A {
......
package jadx.tests.internal.annotations; package jadx.tests.integration.annotations;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
...@@ -13,7 +13,7 @@ import org.junit.Test; ...@@ -13,7 +13,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestAnnotations2 extends InternalJadxTest { public class TestAnnotations2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.annotations; package jadx.tests.integration.annotations;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
...@@ -13,7 +13,7 @@ import org.junit.Test; ...@@ -13,7 +13,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestParamAnnotations extends InternalJadxTest { public class TestParamAnnotations extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.annotations; package jadx.tests.integration.annotations;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestVarArgAnnotation extends InternalJadxTest { public class TestVarArgAnnotation extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.arith; package jadx.tests.integration.arith;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestArith extends InternalJadxTest { public class TestArith extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.arith; package jadx.tests.integration.arith;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestArith2 extends InternalJadxTest { public class TestArith2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.arith; package jadx.tests.integration.arith;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestFieldIncrement extends InternalJadxTest { public class TestFieldIncrement extends IntegrationTest {
public static class TestCls { public static class TestCls {
public int instanceField = 1; public int instanceField = 1;
......
package jadx.tests.internal.arith; package jadx.tests.integration.arith;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestFieldIncrement2 extends InternalJadxTest { public class TestFieldIncrement2 extends IntegrationTest {
class A { class A {
int f = 5; int f = 5;
......
package jadx.tests.internal.arith; package jadx.tests.integration.arith;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestSpecialValues extends InternalJadxTest { public class TestSpecialValues extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.arrays; package jadx.tests.integration.arrays;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestArrayFill extends InternalJadxTest { public class TestArrayFill extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.arrays; package jadx.tests.integration.arrays;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestArrayFill2 extends InternalJadxTest { public class TestArrayFill2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestCmpOp extends InternalJadxTest { public class TestCmpOp extends IntegrationTest {
public static class TestCls { public static class TestCls {
public boolean testGT(float a) { public boolean testGT(float a) {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestCmpOp2 extends InternalJadxTest { public class TestCmpOp2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public boolean testGT(float a, float b) { public boolean testGT(float a, float b) {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions extends InternalJadxTest { public class TestConditions extends IntegrationTest {
public static class TestCls { public static class TestCls {
private boolean test(boolean a, boolean b, boolean c) { private boolean test(boolean a, boolean b, boolean c) {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions10 extends InternalJadxTest { public class TestConditions10 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions11 extends InternalJadxTest { public class TestConditions11 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions12 extends InternalJadxTest { public class TestConditions12 extends IntegrationTest {
public static class TestCls { public static class TestCls {
static boolean autoStop = true; static boolean autoStop = true;
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions13 extends InternalJadxTest { public class TestConditions13 extends IntegrationTest {
public static class TestCls { public static class TestCls {
static boolean qualityReading; static boolean qualityReading;
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions14 extends InternalJadxTest { public class TestConditions14 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions15 extends InternalJadxTest { public class TestConditions15 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
public class TestConditions2 extends InternalJadxTest { public class TestConditions2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
int c; int c;
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.util.List; import java.util.List;
...@@ -12,7 +12,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -12,7 +12,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions3 extends InternalJadxTest { public class TestConditions3 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private static final Pattern PATTERN = Pattern.compile("[a-f0-9]{20}"); private static final Pattern PATTERN = Pattern.compile("[a-f0-9]{20}");
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions4 extends InternalJadxTest { public class TestConditions4 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public int test(int num) { public int test(int num) {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions5 extends InternalJadxTest { public class TestConditions5 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public static void assertEquals(Object a1, Object a2) { public static void assertEquals(Object a1, Object a2) {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.util.List; import java.util.List;
...@@ -11,7 +11,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -11,7 +11,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions6 extends InternalJadxTest { public class TestConditions6 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public boolean test(List<String> l1, List<String> l2) { public boolean test(List<String> l1, List<String> l2) {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions7 extends InternalJadxTest { public class TestConditions7 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public void test(int[] a, int i) { public void test(int[] a, int i) {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions8 extends InternalJadxTest { public class TestConditions8 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private TestCls pager; private TestCls pager;
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestConditions9 extends InternalJadxTest { public class TestConditions9 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public void test(boolean a, int b) throws Exception { public void test(boolean a, int b) throws Exception {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestElseIf extends InternalJadxTest { public class TestElseIf extends IntegrationTest {
public static class TestCls { public static class TestCls {
public int testIfElse(String str) { public int testIfElse(String str) {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static jadx.tests.utils.JadxMatchers.countString; import static jadx.tests.api.utils.JadxMatchers.countString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestNestedIf extends InternalJadxTest { public class TestNestedIf extends IntegrationTest {
public static class TestCls { public static class TestCls {
private boolean a0 = false; private boolean a0 = false;
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestSimpleConditions extends InternalJadxTest { public class TestSimpleConditions extends IntegrationTest {
public static class TestCls { public static class TestCls {
public boolean test1(boolean[] a) { public boolean test1(boolean[] a) {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -10,7 +10,7 @@ import static org.hamcrest.CoreMatchers.not; ...@@ -10,7 +10,7 @@ import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
public class TestTernary extends InternalJadxTest { public class TestTernary extends IntegrationTest {
public static class TestCls { public static class TestCls {
public boolean test1(int a) { public boolean test1(int a) {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
public class TestTernary2 extends InternalJadxTest { public class TestTernary2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.conditions; package jadx.tests.integration.conditions;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestTernaryInIf extends InternalJadxTest { public class TestTernaryInIf extends IntegrationTest {
public static class TestCls { public static class TestCls {
public boolean test1(boolean a, boolean b, boolean c) { public boolean test1(boolean a, boolean b, boolean c) {
......
package jadx.tests.internal.debuginfo; package jadx.tests.integration.debuginfo;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.codegen.CodeWriter; import jadx.core.codegen.CodeWriter;
import jadx.core.dex.attributes.nodes.LineAttrNode; import jadx.core.dex.attributes.nodes.LineAttrNode;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
...@@ -13,7 +13,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -13,7 +13,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestLineNumbers extends InternalJadxTest { public class TestLineNumbers extends IntegrationTest {
public static class TestCls { public static class TestCls {
int field; int field;
......
package jadx.tests.internal.debuginfo; package jadx.tests.integration.debuginfo;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.codegen.CodeWriter; import jadx.core.codegen.CodeWriter;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
...@@ -11,7 +11,7 @@ import org.junit.Test; ...@@ -11,7 +11,7 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
public class TestLineNumbers2 extends InternalJadxTest { public class TestLineNumbers2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private WeakReference<TestCls> f; private WeakReference<TestCls> f;
......
package jadx.tests.internal.enums; package jadx.tests.integration.enums;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsLines; import static jadx.tests.api.utils.JadxMatchers.containsLines;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestEnums extends InternalJadxTest { public class TestEnums extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.enums; package jadx.tests.integration.enums;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import jadx.tests.utils.JadxMatchers; import jadx.tests.api.utils.JadxMatchers;
import org.junit.Test; import org.junit.Test;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestEnums2 extends InternalJadxTest { public class TestEnums2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.enums; package jadx.tests.integration.enums;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.countString; import static jadx.tests.api.utils.JadxMatchers.countString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestSwitchOverEnum extends InternalJadxTest { public class TestSwitchOverEnum extends IntegrationTest {
public enum Count { public enum Count {
ONE, TWO, THREE ONE, TWO, THREE
......
package jadx.tests.internal.generics; package jadx.tests.integration.generics;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.util.List; import java.util.List;
...@@ -10,7 +10,7 @@ import org.junit.Test; ...@@ -10,7 +10,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestGenerics extends InternalJadxTest { public class TestGenerics extends IntegrationTest {
public static class TestCls { public static class TestCls {
class A { class A {
......
package jadx.tests.internal.generics; package jadx.tests.integration.generics;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.lang.ref.ReferenceQueue; import java.lang.ref.ReferenceQueue;
...@@ -12,7 +12,7 @@ import org.junit.Test; ...@@ -12,7 +12,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestGenerics2 extends InternalJadxTest { public class TestGenerics2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private static class ItemReference<V> extends WeakReference<V> { private static class ItemReference<V> extends WeakReference<V> {
......
package jadx.tests.internal.generics; package jadx.tests.integration.generics;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.util.List; import java.util.List;
...@@ -10,7 +10,7 @@ import org.junit.Test; ...@@ -10,7 +10,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestGenerics3 extends InternalJadxTest { public class TestGenerics3 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.generics; package jadx.tests.integration.generics;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestGenerics4 extends InternalJadxTest { public class TestGenerics4 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.inline; package jadx.tests.integration.inline;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestInline extends InternalJadxTest { public class TestInline extends IntegrationTest {
public static class TestCls { public static class TestCls {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
......
package jadx.tests.internal.inline; package jadx.tests.integration.inline;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestInline2 extends InternalJadxTest { public class TestInline2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public int test() throws InterruptedException { public int test() throws InterruptedException {
......
package jadx.tests.internal.inline; package jadx.tests.integration.inline;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestInline3 extends InternalJadxTest { public class TestInline3 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public TestCls(int b1, int b2) { public TestCls(int b1, int b2) {
......
package jadx.tests.internal.inline; package jadx.tests.integration.inline;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestInline6 extends InternalJadxTest { public class TestInline6 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public void f() { public void f() {
......
package jadx.tests.internal.inline; package jadx.tests.integration.inline;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static jadx.tests.utils.JadxMatchers.countString; import static jadx.tests.api.utils.JadxMatchers.countString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestInlineInLoop extends InternalJadxTest { public class TestInlineInLoop extends IntegrationTest {
public static class TestCls { public static class TestCls {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
......
package jadx.tests.internal.inline; package jadx.tests.integration.inline;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestSyntheticInline extends InternalJadxTest { public class TestSyntheticInline extends IntegrationTest {
public static class TestCls { public static class TestCls {
private int f; private int f;
......
package jadx.tests.internal.inner; package jadx.tests.integration.inner;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.io.File; import java.io.File;
...@@ -12,7 +12,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -12,7 +12,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestAnonymousClass extends InternalJadxTest { public class TestAnonymousClass extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.inner; package jadx.tests.integration.inner;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestAnonymousClass2 extends InternalJadxTest { public class TestAnonymousClass2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public static class Inner { public static class Inner {
......
package jadx.tests.internal.inner; package jadx.tests.integration.inner;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestAnonymousClass3 extends InternalJadxTest { public class TestAnonymousClass3 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public static class Inner { public static class Inner {
......
package jadx.tests.internal.inner; package jadx.tests.integration.inner;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static jadx.tests.utils.JadxMatchers.countString; import static jadx.tests.api.utils.JadxMatchers.countString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestAnonymousClass4 extends InternalJadxTest { public class TestAnonymousClass4 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public static class Inner { public static class Inner {
......
package jadx.tests.internal.inner; package jadx.tests.integration.inner;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestInnerClass extends InternalJadxTest { public class TestInnerClass extends IntegrationTest {
public static class TestCls { public static class TestCls {
public class Inner { public class Inner {
......
package jadx.tests.internal.inner; package jadx.tests.integration.inner;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.util.Timer; import java.util.Timer;
...@@ -12,7 +12,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -12,7 +12,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestInnerClass2 extends InternalJadxTest { public class TestInnerClass2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private static class TerminateTask extends TimerTask { private static class TerminateTask extends TimerTask {
......
package jadx.tests.internal.inner; package jadx.tests.integration.inner;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestInnerClass3 extends InternalJadxTest { public class TestInnerClass3 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private String c; private String c;
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsLines; import static jadx.tests.api.utils.JadxMatchers.containsLines;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestArrayForEach extends InternalJadxTest { public class TestArrayForEach extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsLines; import static jadx.tests.api.utils.JadxMatchers.containsLines;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestArrayForEach2 extends InternalJadxTest { public class TestArrayForEach2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private void test(String str) { private void test(String str) {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestArrayForEachNegative extends InternalJadxTest { public class TestArrayForEachNegative extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static jadx.tests.utils.JadxMatchers.countString; import static jadx.tests.api.utils.JadxMatchers.countString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestBreakInLoop extends InternalJadxTest { public class TestBreakInLoop extends IntegrationTest {
public static class TestCls { public static class TestCls {
private int f; private int f;
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsLines; import static jadx.tests.api.utils.JadxMatchers.containsLines;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestIndexForLoop extends InternalJadxTest { public class TestIndexForLoop extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsLines; import static jadx.tests.api.utils.JadxMatchers.containsLines;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestIterableForEach extends InternalJadxTest { public class TestIterableForEach extends IntegrationTest {
public static class TestCls { public static class TestCls {
private String test(Iterable<String> a) { private String test(Iterable<String> a) {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.io.IOException; import java.io.IOException;
...@@ -8,10 +8,10 @@ import java.util.List; ...@@ -8,10 +8,10 @@ import java.util.List;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestIterableForEach2 extends InternalJadxTest { public class TestIterableForEach2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public static String test(final Service service) throws IOException { public static String test(final Service service) throws IOException {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestLoopCondition extends InternalJadxTest { public class TestLoopCondition extends IntegrationTest {
public static class TestCls { public static class TestCls {
public String f; public String f;
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestLoopCondition2 extends InternalJadxTest { public class TestLoopCondition2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestLoopCondition3 extends InternalJadxTest { public class TestLoopCondition3 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestLoopCondition4 extends InternalJadxTest { public class TestLoopCondition4 extends IntegrationTest {
public static class TestCls { public static class TestCls {
public static void test() { public static void test() {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestLoopConditionInvoke extends InternalJadxTest { public class TestLoopConditionInvoke extends IntegrationTest {
public static class TestCls { public static class TestCls {
private static final char STOP_CHAR = 0; private static final char STOP_CHAR = 0;
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestLoopDetection extends InternalJadxTest { public class TestLoopDetection extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestLoopDetection2 extends InternalJadxTest { public class TestLoopDetection2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestLoopDetection3 extends InternalJadxTest { public class TestLoopDetection3 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.util.Iterator; import java.util.Iterator;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestLoopDetection4 extends InternalJadxTest { public class TestLoopDetection4 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private Iterator<String> iterator; private Iterator<String> iterator;
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.util.List; import java.util.List;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestNestedLoops extends InternalJadxTest { public class TestNestedLoops extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.util.List; import java.util.List;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestNestedLoops2 extends InternalJadxTest { public class TestNestedLoops2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.loops; package jadx.tests.integration.loops;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static jadx.tests.utils.JadxMatchers.countString; import static jadx.tests.api.utils.JadxMatchers.countString;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestSequentialLoops extends InternalJadxTest { public class TestSequentialLoops extends IntegrationTest {
public static class TestCls { public static class TestCls {
public int test7(int a, int b) { public int test7(int a, int b) {
......
package jadx.tests.internal.names; package jadx.tests.integration.names;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestSameMethodsNames extends InternalJadxTest { public class TestSameMethodsNames extends IntegrationTest {
public static class TestCls<V> { public static class TestCls<V> {
......
package jadx.tests.internal.others; package jadx.tests.integration.others;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.io.File; import java.io.File;
...@@ -8,11 +8,11 @@ import java.io.IOException; ...@@ -8,11 +8,11 @@ import java.io.IOException;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static jadx.tests.utils.JadxMatchers.countString; import static jadx.tests.api.utils.JadxMatchers.countString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestIfInTry extends InternalJadxTest { public class TestIfInTry extends IntegrationTest {
public static class TestCls { public static class TestCls {
private File dir; private File dir;
......
package jadx.tests.internal.others; package jadx.tests.integration.others;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static jadx.tests.utils.JadxMatchers.countString; import static jadx.tests.api.utils.JadxMatchers.countString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestIfTryInCatch extends InternalJadxTest { public class TestIfTryInCatch extends IntegrationTest {
public static class TestCls { public static class TestCls {
private static final String TAG = "TAG"; private static final String TAG = "TAG";
......
package jadx.tests.internal.others; package jadx.tests.integration.others;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.lang.reflect.Field; import java.lang.reflect.Field;
...@@ -8,10 +8,10 @@ import java.util.HashMap; ...@@ -8,10 +8,10 @@ import java.util.HashMap;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestIssue13a extends InternalJadxTest { public class TestIssue13a extends IntegrationTest {
public static class TestCls { public static class TestCls {
private static final String TAG = "Parcel"; private static final String TAG = "Parcel";
......
package jadx.tests.internal.others; package jadx.tests.integration.others;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.io.File; import java.io.File;
...@@ -11,11 +11,11 @@ import java.util.concurrent.CountDownLatch; ...@@ -11,11 +11,11 @@ import java.util.concurrent.CountDownLatch;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static jadx.tests.utils.JadxMatchers.countString; import static jadx.tests.api.utils.JadxMatchers.countString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestIssue13b extends InternalJadxTest { public class TestIssue13b extends IntegrationTest {
public static class TestCls { public static class TestCls {
......
package jadx.tests.internal.others; package jadx.tests.integration.others;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestLoopInTry extends InternalJadxTest { public class TestLoopInTry extends IntegrationTest {
public static class TestCls { public static class TestCls {
private static boolean b = true; private static boolean b = true;
......
package jadx.tests.internal.others; package jadx.tests.integration.others;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import jadx.core.dex.nodes.DexNode; import jadx.core.dex.nodes.DexNode;
import jadx.core.dex.nodes.MethodNode; import jadx.core.dex.nodes.MethodNode;
...@@ -14,10 +14,10 @@ import com.android.dex.Code; ...@@ -14,10 +14,10 @@ import com.android.dex.Code;
import com.android.dx.io.instructions.DecodedInstruction; import com.android.dx.io.instructions.DecodedInstruction;
import com.android.dx.io.instructions.ShortArrayCodeInput; import com.android.dx.io.instructions.ShortArrayCodeInput;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestLoopInTry2 extends InternalJadxTest { public class TestLoopInTry2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private MethodNode method; private MethodNode method;
......
package jadx.tests.internal.switches; package jadx.tests.integration.switches;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestSwitch extends InternalJadxTest { public class TestSwitch extends IntegrationTest {
public static class TestCls { public static class TestCls {
public String escape(String str) { public String escape(String str) {
int len = str.length(); int len = str.length();
......
package jadx.tests.internal.switches; package jadx.tests.integration.switches;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestSwitchLabels extends InternalJadxTest { public class TestSwitchLabels extends IntegrationTest {
public static class TestCls { public static class TestCls {
public static final int CONST_ABC = 0xABC; public static final int CONST_ABC = 0xABC;
public static final int CONST_CDE = 0xCDE; public static final int CONST_CDE = 0xCDE;
......
package jadx.tests.internal.switches; package jadx.tests.integration.switches;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
public class TestSwitchNoDefault extends InternalJadxTest { public class TestSwitchNoDefault extends IntegrationTest {
public static class TestCls { public static class TestCls {
public void test(int a) { public void test(int a) {
......
package jadx.tests.internal.switches; package jadx.tests.integration.switches;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -10,7 +10,7 @@ import static org.hamcrest.CoreMatchers.not; ...@@ -10,7 +10,7 @@ import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestSwitchSimple extends InternalJadxTest { public class TestSwitchSimple extends IntegrationTest {
public static class TestCls { public static class TestCls {
public void test(int a) { public void test(int a) {
......
package jadx.tests.internal.synchronize; package jadx.tests.integration.synchronize;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestSynchronized extends InternalJadxTest { public class TestSynchronized extends IntegrationTest {
public static class TestCls { public static class TestCls {
public boolean f = false; public boolean f = false;
......
package jadx.tests.internal.synchronize; package jadx.tests.integration.synchronize;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestSynchronized2 extends InternalJadxTest { public class TestSynchronized2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private static synchronized boolean test(Object obj) { private static synchronized boolean test(Object obj) {
......
package jadx.tests.internal.trycatch; package jadx.tests.integration.trycatch;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.io.File; import java.io.File;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestInlineInCatch extends InternalJadxTest { public class TestInlineInCatch extends IntegrationTest {
public static class TestCls { public static class TestCls {
private File dir; private File dir;
......
package jadx.tests.internal.trycatch; package jadx.tests.integration.trycatch;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestNestedTryCatch extends InternalJadxTest { public class TestNestedTryCatch extends IntegrationTest {
public static class TestCls { public static class TestCls {
private void f() { private void f() {
...@@ -21,7 +21,7 @@ public class TestNestedTryCatch extends InternalJadxTest { ...@@ -21,7 +21,7 @@ public class TestNestedTryCatch extends InternalJadxTest {
} }
} catch (Exception e) { } catch (Exception e) {
} }
return; return;
} }
} }
......
package jadx.tests.internal.trycatch; package jadx.tests.integration.trycatch;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestTryCatch extends InternalJadxTest { public class TestTryCatch extends IntegrationTest {
public static class TestCls { public static class TestCls {
private void f() { private void f() {
......
package jadx.tests.internal.trycatch; package jadx.tests.integration.trycatch;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestTryCatch2 extends InternalJadxTest { public class TestTryCatch2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private final static Object obj = new Object(); private final static Object obj = new Object();
......
package jadx.tests.internal.trycatch; package jadx.tests.integration.trycatch;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestTryCatch3 extends InternalJadxTest { public class TestTryCatch3 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private final static Object obj = new Object(); private final static Object obj = new Object();
......
package jadx.tests.internal.trycatch; package jadx.tests.integration.trycatch;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.io.File; import java.io.File;
...@@ -13,7 +13,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -13,7 +13,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestTryCatch4 extends InternalJadxTest { public class TestTryCatch4 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private Object test(Object obj) { private Object test(Object obj) {
......
package jadx.tests.internal.trycatch; package jadx.tests.integration.trycatch;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.io.File; import java.io.File;
...@@ -12,7 +12,7 @@ import org.junit.Test; ...@@ -12,7 +12,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestTryCatch5 extends InternalJadxTest { public class TestTryCatch5 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private Object test(Object obj) { private Object test(Object obj) {
......
package jadx.tests.internal.types; package jadx.tests.integration.types;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString; ...@@ -9,7 +9,7 @@ import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestTypeResolver extends InternalJadxTest { public class TestTypeResolver extends IntegrationTest {
public static class TestCls { public static class TestCls {
public TestCls(int b1, int b2) { public TestCls(int b1, int b2) {
......
package jadx.tests.internal.usethis; package jadx.tests.integration.usethis;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestInlineThis extends InternalJadxTest { public class TestInlineThis extends IntegrationTest {
public static class TestCls { public static class TestCls {
public int field; public int field;
......
package jadx.tests.internal.usethis; package jadx.tests.integration.usethis;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestRedundantThis extends InternalJadxTest { public class TestRedundantThis extends IntegrationTest {
public static class TestCls { public static class TestCls {
public int field1 = 1; public int field1 = 1;
......
package jadx.tests.internal.variables; package jadx.tests.integration.variables;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestVariables2 extends InternalJadxTest { public class TestVariables2 extends IntegrationTest {
public static class TestCls { public static class TestCls {
Object test(Object s) { Object test(Object s) {
......
package jadx.tests.internal.variables; package jadx.tests.integration.variables;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
...@@ -8,7 +8,7 @@ import org.junit.Test; ...@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestVariables3 extends InternalJadxTest { public class TestVariables3 extends IntegrationTest {
public static class TestCls { public static class TestCls {
String test(Object s) { String test(Object s) {
......
package jadx.tests.internal.variables; package jadx.tests.integration.variables;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
...@@ -11,7 +11,7 @@ import org.junit.Test; ...@@ -11,7 +11,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestVariables4 extends InternalJadxTest { public class TestVariables4 extends IntegrationTest {
public static class TestCls { public static class TestCls {
private static boolean runTest(String clsName) { private static boolean runTest(String clsName) {
......
package jadx.tests.internal.variables; package jadx.tests.integration.variables;
import jadx.api.InternalJadxTest; import jadx.tests.api.IntegrationTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import jadx.core.dex.visitors.DepthTraversal; import jadx.core.dex.visitors.DepthTraversal;
import jadx.core.dex.visitors.IDexTreeVisitor; import jadx.core.dex.visitors.IDexTreeVisitor;
...@@ -10,12 +10,12 @@ import java.util.List; ...@@ -10,12 +10,12 @@ import java.util.List;
import org.junit.Test; import org.junit.Test;
import org.slf4j.Logger; import org.slf4j.Logger;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
public class TestVariablesDefinitions extends InternalJadxTest { public class TestVariablesDefinitions extends IntegrationTest {
public static class TestCls { public static class TestCls {
private static Logger LOG; private static Logger LOG;
......
package jadx.tests.smali; package jadx.tests.smali;
import jadx.api.SmaliTest; import jadx.tests.api.SmaliTest;
import jadx.core.dex.nodes.ClassNode; import jadx.core.dex.nodes.ClassNode;
import org.junit.Test; import org.junit.Test;
import static jadx.tests.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment