patrickfav/under-the-hood

View on GitHub
hood-extended/src/androidTest/java/at/favre/lib/hood/extended/PopHoodActivityTest.java

Summary

Maintainability
A
0 mins
Test Coverage
package at.favre.lib.hood.extended;

import android.content.Context;

import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.platform.app.InstrumentationRegistry;

import org.junit.Test;
import org.junit.runner.RunWith;

import static junit.framework.Assert.assertEquals;

@RunWith(AndroidJUnit4.class)
public class PopHoodActivityTest {
    @Test
    public void testEmptyActivity() throws Exception {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals("at.favre.lib.hood.test", appContext.getPackageName());
    }
}