Package jadx.tests.integration.inner

Source Code of jadx.tests.integration.inner.TestRFieldAccess$R$id

package jadx.tests.integration.inner;

import jadx.core.dex.nodes.ClassNode;
import jadx.tests.api.IntegrationTest;

import org.junit.Test;

import static jadx.tests.api.utils.JadxMatchers.countString;
import static org.junit.Assert.assertThat;

public class TestRFieldAccess extends IntegrationTest {

  public static class R {
    public static final class id {
      public static final int Button01 = 2131230730;
    }
  }

  public static class TestR {
    public int test() {
      return R.id.Button01;
    }
  }

  @Test
  public void test() {
    ClassNode cls = getClassNode(TestRFieldAccess.class);
    String code = cls.getCode().toString();
    assertThat(code, countString(2, "return R.id.Button01;"));
  }
}
TOP

Related Classes of jadx.tests.integration.inner.TestRFieldAccess$R$id

TOP
Copyright © 2018 www.massapi.com. 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.