Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
io.flutter.external.FlutterLaunchTests Class Reference

Public Member Functions

void launchFlutterActivity_with_defaultIntent_expect_defaultConfiguration ()
 

Detailed Description

Definition at line 22 of file FlutterLaunchTests.java.

Member Function Documentation

◆ launchFlutterActivity_with_defaultIntent_expect_defaultConfiguration()

void io.flutter.external.FlutterLaunchTests.launchFlutterActivity_with_defaultIntent_expect_defaultConfiguration ( )
inline

Definition at line 24 of file FlutterLaunchTests.java.

24 {
25 Intent intent =
26 FlutterActivity.createDefaultIntent(ApplicationProvider.getApplicationContext());
27 FlutterActivity flutterActivity = RobolectricFlutterActivity.createFlutterActivity(intent);
28
29 assertEquals("main", flutterActivity.getDartEntrypointFunctionName());
30 assertEquals("/", flutterActivity.getInitialRoute());
31 assertArrayEquals(new String[] {}, flutterActivity.getFlutterShellArgs().toArray());
32 assertTrue(flutterActivity.shouldAttachEngineToActivity());
33 assertNull(flutterActivity.getCachedEngineId());
34 assertTrue(flutterActivity.shouldDestroyEngineWithHost());
35 assertEquals(
36 BackgroundMode.opaque, RobolectricFlutterActivity.getBackgroundMode(flutterActivity));
37 assertEquals(RenderMode.surface, flutterActivity.getRenderMode());
38 assertEquals(TransparencyMode.opaque, flutterActivity.getTransparencyMode());
39 }

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