update
This commit is contained in:
parent
e749e1a7d5
commit
fa12ce88d7
@ -1,14 +1,10 @@
|
|||||||
package com.sahooz.library;
|
package com.sahooz.library;
|
||||||
|
|
||||||
import android.content.Context;
|
import androidx.test.runner.AndroidJUnit4;
|
||||||
import androidx.test.platform.app.InstrumentationRegistry;
|
|
||||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instrumentation test, which will execute on an Android device.
|
* Instrumentation test, which will execute on an Android device.
|
||||||
*
|
*
|
||||||
@ -19,8 +15,5 @@ public class ExampleInstrumentedTest {
|
|||||||
@Test
|
@Test
|
||||||
public void useAppContext() throws Exception {
|
public void useAppContext() throws Exception {
|
||||||
// Context of the app under test.
|
// Context of the app under test.
|
||||||
Context appContext = InstrumentationRegistry.getTargetContext();
|
|
||||||
|
|
||||||
assertEquals("com.sahooz.library.test", appContext.getPackageName());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user