Checking in LEDE GUI for device registration; this was ported from the implementation...
[iot2.git] / others / lede-gui / src / androidTest / java / com / example / lede2 / ExampleInstrumentedTest.java
1 package com.example.lede2;\r
2 \r
3 import android.content.Context;\r
4 import android.support.test.InstrumentationRegistry;\r
5 import android.support.test.runner.AndroidJUnit4;\r
6 \r
7 import org.junit.Test;\r
8 import org.junit.runner.RunWith;\r
9 \r
10 import static org.junit.Assert.*;\r
11 \r
12 /**\r
13  * Instrumentation test, which will execute on an Android device.\r
14  *\r
15  * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>\r
16  */\r
17 @RunWith(AndroidJUnit4.class)\r
18 public class ExampleInstrumentedTest {\r
19     @Test\r
20     public void useAppContext() throws Exception {\r
21         // Context of the app under test.\r
22         Context appContext = InstrumentationRegistry.getTargetContext();\r
23 \r
24         assertEquals("com.example.lede2", appContext.getPackageName());\r
25     }\r
26 }\r