You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppUpdater/app-dialog/src/androidTest/java/com/king/app/dialog/ExampleInstrumentedTest.java

24 lines
608 B

package com.king.app.dialog;
import android.content.Context;
import org.junit.Test;
import androidx.test.InstrumentationRegistry;
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>
*/
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.king.app.dialog.test", appContext.getPackageName());
}
}