This commit is contained in:
zlzw 2022-09-22 13:57:15 +08:00
parent e749e1a7d5
commit fa12ce88d7

View File

@ -1,14 +1,10 @@
package com.sahooz.library;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
@ -19,8 +15,5 @@ public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.sahooz.library.test", appContext.getPackageName());
}
}