1 package com.example.lede2;
\r
3 import android.content.Context;
\r
4 import android.support.test.InstrumentationRegistry;
\r
5 import android.support.test.runner.AndroidJUnit4;
\r
7 import org.junit.Test;
\r
8 import org.junit.runner.RunWith;
\r
10 import static org.junit.Assert.*;
\r
13 * Instrumentation test, which will execute on an Android device.
\r
15 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
\r
17 @RunWith(AndroidJUnit4.class)
\r
18 public class ExampleInstrumentedTest {
\r
20 public void useAppContext() throws Exception {
\r
21 // Context of the app under test.
\r
22 Context appContext = InstrumentationRegistry.getTargetContext();
\r
24 assertEquals("com.example.lede2", appContext.getPackageName());
\r