INNER CODE UNIT · Java

useAppContext

amitshekhariitbhu/Android-Debug-Database · sample-app/src/androidTest/java/com/sample/ExampleInstrumentedTest.java:39

    public void useAppContext() throws Exception {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals("com.sample", appContext.getPackageName());
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…