package com.example.helloworld;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test which will execute on an Android device.
*
* @see Testing documentation
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals(“com.example.helloworld“ appContext.getPackageName());
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-01-15 05:37 booksource-master\
文件 270 2018-01-15 05:37 booksource-master\README.md
目录 0 2018-01-15 05:37 booksource-master\chapter1\
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\
文件 97 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\.gitignore
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\
文件 7 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\.gitignore
文件 622 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\build.gradle
文件 679 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\proguard-rules.pro
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\androidTest\
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\androidTest\java\
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\androidTest\java\com\
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\androidTest\java\com\example\
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\androidTest\java\com\example\helloworld\
文件 748 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\androidTest\java\com\example\helloworld\ExampleInstrumentedTest.java
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\
文件 667 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\AndroidManifest.xml
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\java\
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\java\com\
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\java\com\example\
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\java\com\example\helloworld\
文件 473 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\java\com\example\helloworld\HelloWorldActivity.java
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\res\
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\res\layout\
文件 749 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\res\layout\hello_world_layout.xml
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\res\mipmap-hdpi\
文件 3418 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\res\mipmap-hdpi\ic_launcher.png
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\res\mipmap-mdpi\
文件 2206 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\res\mipmap-mdpi\ic_launcher.png
目录 0 2018-01-15 05:37 booksource-master\chapter1\HelloWorld\app\src\main\res\mipmap-xhdpi\
............此处省略2103个文件信息