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