misp-bump/app/src/androidTest/java/lu/circl/mispbump/ExampleInstrumentedTest.java

27 lines
704 B
Java
Raw Normal View History

2019-05-27 16:06:07 +02:00
package lu.circl.mispbump;
2018-06-10 16:23:33 +02:00
import android.content.Context;
import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;
2018-06-10 16:23:33 +02:00
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
2018-08-10 15:15:09 +02:00
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
2018-06-10 16:23:33 +02:00
2019-05-27 16:06:07 +02:00
assertEquals("lu.circl.mispbump", appContext.getPackageName());
2018-08-10 15:15:09 +02:00
}
2018-06-10 16:23:33 +02:00
}