X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=CineRmt%2Fapp%2Fsrc%2FandroidTest%2Fjava%2Fcom%2Flocal%2Fcinermt%2FExampleInstrumentedTest.java;fp=CineRmt%2Fapp%2Fsrc%2FandroidTest%2Fjava%2Fcom%2Flocal%2Fcinermt%2FExampleInstrumentedTest.java;h=713c9499d3082f5d40ff7748fb370d1d9b27eb0a;hp=0000000000000000000000000000000000000000;hb=da82546b4d3b6b056c6c333b2d52fba1bdcb1f50;hpb=93cd60723f8816b0c787b1ce9fe7aa6067e0e749;ds=sidebyside diff --git a/CineRmt/app/src/androidTest/java/com/local/cinermt/ExampleInstrumentedTest.java b/CineRmt/app/src/androidTest/java/com/local/cinermt/ExampleInstrumentedTest.java new file mode 100644 index 00000000..713c9499 --- /dev/null +++ b/CineRmt/app/src/androidTest/java/com/local/cinermt/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.local.cinermt; + +import android.content.Context; +import android.support.test.InstrumentationRegistry; +import android.support.test.runner.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("com.local.cinermt", appContext.getPackageName()); + } +}