package jadx.tests.smali; import jadx.core.dex.nodes.ClassNode; import jadx.tests.api.SmaliTest; import org.junit.Test; import static jadx.tests.api.utils.JadxMatchers.containsOne; import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.not; import static org.junit.Assert.assertThat; public class TestConstructor extends SmaliTest { @Test public void test() { disableCompilation(); ClassNode cls = getClassNodeFromSmali("TestConstructor"); String code = cls.getCode().toString(); assertThat(code, containsOne("new SomeObject(arg3);")); assertThat(code, not(containsString("= someObject"))); } }