Tesis
1.0.0
Loading...
Searching...
No Matches
ExampleInstrumentedTest.java
Go to the documentation of this file.
1
package
com.example.food_front;
2
3
import
android.content.Context;
4
5
import
androidx.test.platform.app.InstrumentationRegistry;
6
import
androidx.test.ext.junit.runners.AndroidJUnit4;
7
8
import
org.junit.Test;
9
import
org.junit.runner.RunWith;
10
11
import
static
org.junit.Assert.*;
12
18
@RunWith(AndroidJUnit4.class)
19
public class
ExampleInstrumentedTest
{
20
@Test
21
public
void
useAppContext
() {
22
// Context of the app under test.
23
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24
assertEquals(
"com.example.food_front"
, appContext.getPackageName());
25
}
26
}
com.example.food_front.ExampleInstrumentedTest
Definition
ExampleInstrumentedTest.java:19
com.example.food_front.ExampleInstrumentedTest.useAppContext
void useAppContext()
Definition
ExampleInstrumentedTest.java:21
mobile2025
app
src
androidTest
java
com
example
food_front
ExampleInstrumentedTest.java
Generated by
1.14.0