Package jadx.core.dex.nodes

Examples of jadx.core.dex.nodes.ClassNode


    }
  }

  @Test
  public void test() {
    ClassNode cls = getClassNode(TestCls.class);
    String code = cls.getCode().toString();

    assertThat(code, not(containsString("return")));
    assertThat(code, containsOne("if (a || b > 2) {"));
    assertThat(code, containsOne("b++;"));
    assertThat(code, containsOne("if (!a || (b >= 0 && b <= 11)) {"));
View Full Code Here


    }
  }

  @Test
  public void test() {
    ClassNode cls = getClassNode(TestCls.class);
    String code = cls.getCode().toString();

    assertThat(code, containsString("while (i < a.length && i < b) {"));
    assertThat(code, containsString("while (i < a.length) {"));

    assertThat(code, containsString("int i = 0;"));
View Full Code Here

    }
  }

  @Test
  public void test() {
    ClassNode cls = getClassNode(TestCls.class);
    String code = cls.getCode().toString();

    assertThat(code, containsString("showMore();"));
  }
View Full Code Here

    }
  }

  @Test
  public void test() {
    ClassNode cls = getClassNode(TestCls.class);
    String code = cls.getCode().toString();

    assertThat(code, containsLines(2,
        "int sum = 0;",
        "for (int n : a) {",
        indent(1) + "sum += n;",
View Full Code Here

    }
  }

  @Test
  public void test() {
    ClassNode cls = getClassNode(TestCls.class);
    String code = cls.getCode().toString();

    assertThat(code, containsString("if (a1 == null) {"));
    assertThat(code, containsString("if (a2 != null) {"));
    assertThat(code, containsString("throw new AssertionError(a1 + \" != \" + a2);"));
    assertThat(code, not(containsString("if (a1.equals(a2)) {")));
View Full Code Here

    }
  }

  @Test
  public void test() {
    ClassNode cls = getClassNode(TestCls.class);
    String code = cls.getCode().toString();

    assertThat(code, containsString("return a > 3.0f;"));
    assertThat(code, containsString("return b < 2.0f;"));
    assertThat(code, containsString("return c == 1.0f;"));
    assertThat(code, containsString("return d != 0.0f;"));
View Full Code Here

    }
  }

  @Test
  public void test() {
    ClassNode cls = getClassNode(TestCls.class);
    String code = cls.getCode().toString();

    assertThat(code, not(containsString("else")));
    assertThat(code, containsString("return a != 2;"));
    assertThat(code, containsString("assertTrue(a == 3)"));
    assertThat(code, containsString("return a > 0 ? 1 : (a + 2) * 3;"));
 
View Full Code Here

  }

  @Test
  public void test() {
    noDebugInfo();
    ClassNode cls = getClassNode(TestCls.class);
    String code = cls.getCode().toString();

    assertThat(code, containsString("i++;"));
    assertThat(code, not(containsString("i = i + 1;")));
  }
View Full Code Here

    }
  }

  @Test
  public void test() {
    ClassNode cls = getClassNode(TestCls.class);
    String code = cls.getCode().toString();

    assertThat(code, not(containsString("1073741824")));
    assertThat(code, containsString("0.55f"));
    assertThat(code, containsString("fa[0] = fa[0] / 2.0f;"));
  }
View Full Code Here

    }
  }

  @Test
  public void test() {
    ClassNode cls = getClassNode(TestCls.class);
    String code = cls.getCode().toString();

    assertThat(code, containsString("Object store = s != null ? s : null;"));
  }
View Full Code Here

TOP

Related Classes of jadx.core.dex.nodes.ClassNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.