History

initials

eli committed 8 years ago

Commit 0cf8c921 parent e63b8871765 files · +123164 −-1142Browse files

Showing the changes to app/src/androidTest/java/org/echoline/drawterm/ExampleInstrumentedTest.java (1 of 1765 files). Show all

Unified · Split

app/src/androidTest/java/org/echoline/drawterm/ExampleInstrumentedTest.java+26−0
@@ -0,0 +1,26 @@
1package org.echoline.drawterm;
2
3import android.content.Context;
4import android.support.test.InstrumentationRegistry;
5import android.support.test.runner.AndroidJUnit4;
6
7import org.junit.Test;
8import org.junit.runner.RunWith;
9
10import static org.junit.Assert.*;
11
12/**
13 * Instrumented test, which will execute on an Android device.
14 *
15 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
16 */
17@RunWith(AndroidJUnit4.class)
18public class ExampleInstrumentedTest {
19 @Test
20 public void useAppContext() throws Exception {
21 // Context of the app under test.
22 Context appContext = InstrumentationRegistry.getTargetContext();
23
24 assertEquals("org.echoline.drawterm", appContext.getPackageName());
25 }
26}