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 }