Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dev.flutter.scenarios.ExampleInstrumentedTest Class Reference

Public Member Functions

void useAppContext ()
 

Detailed Description

Instrumented test, which will execute on an Android device.

See also
Testing documentation

Definition at line 21 of file ExampleInstrumentedTest.java.

Member Function Documentation

◆ useAppContext()

void dev.flutter.scenarios.ExampleInstrumentedTest.useAppContext ( )
inline

Definition at line 23 of file ExampleInstrumentedTest.java.

23 {
24 // Context of the app under test.
25 Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
26
27 assertEquals("dev.flutter.scenarios", appContext.getPackageName());
28 }

The documentation for this class was generated from the following file: