Definition at line 32 of file FlutterInjectorTest.java.
◆ canInjectDeferredComponentManager()
void io.flutter.FlutterInjectorTest.canInjectDeferredComponentManager |
( |
| ) |
|
|
inline |
Definition at line 91 of file FlutterInjectorTest.java.
91 {
92 FlutterInjector.setInstance(
93 new FlutterInjector.Builder()
95 .build());
96 FlutterInjector injector = FlutterInjector.instance();
98 }
PlayStoreDeferredComponentManager mockDeferredComponentManager
◆ canInjectExecutorService()
void io.flutter.FlutterInjectorTest.canInjectExecutorService |
( |
| ) |
|
|
inline |
Definition at line 101 of file FlutterInjectorTest.java.
101 {
102 FlutterInjector.setInstance(
104 FlutterInjector injector = FlutterInjector.instance();
106 }
ExecutorService mockExecutorService
◆ cannotBeChangedOnceRead()
void io.flutter.FlutterInjectorTest.cannotBeChangedOnceRead |
( |
| ) |
|
|
inline |
Definition at line 109 of file FlutterInjectorTest.java.
109 {
110 FlutterInjector.instance();
111
112 assertThrows(
113 IllegalStateException.class,
114 () -> {
115 FlutterInjector.setInstance(
116 new FlutterInjector.Builder().setFlutterLoader(mockFlutterLoader).build());
117 });
118 }
◆ canPartiallyOverride()
void io.flutter.FlutterInjectorTest.canPartiallyOverride |
( |
| ) |
|
|
inline |
Definition at line 83 of file FlutterInjectorTest.java.
83 {
84 FlutterInjector.setInstance(
86 FlutterInjector injector = FlutterInjector.instance();
88 }
FlutterLoader mockFlutterLoader
◆ executorCreatesAndNamesNewThreadsByDefault()
void io.flutter.FlutterInjectorTest.executorCreatesAndNamesNewThreadsByDefault |
( |
| ) |
throws InterruptedException, ExecutionException |
|
inline |
Definition at line 59 of file FlutterInjectorTest.java.
60 {
61
62 FlutterInjector injector = FlutterInjector.instance();
63
65 Arrays.asList(
66 () -> {
67 return Thread.currentThread().getName();
68 },
69 () -> {
70 return Thread.currentThread().getName();
71 });
72
74 threadNames = injector.executorService().invokeAll(callables);
75
76 assertEquals(threadNames.size(), 2);
77 for (Future<String>
name : threadNames) {
78 assertTrue(
name.get().startsWith(
"flutter-worker-"));
79 }
80 }
DEF_SWITCHES_START aot vmservice shared library name
◆ itHasSomeReasonableDefaults()
void io.flutter.FlutterInjectorTest.itHasSomeReasonableDefaults |
( |
| ) |
|
|
inline |
Definition at line 50 of file FlutterInjectorTest.java.
50 {
51
52 FlutterInjector injector = FlutterInjector.instance();
53 assertNotNull(injector.flutterLoader());
54 assertNull(injector.deferredComponentManager());
55 assertNotNull(injector.executorService());
56 }
◆ setUp()
void io.flutter.FlutterInjectorTest.setUp |
( |
| ) |
|
|
inline |
Definition at line 38 of file FlutterInjectorTest.java.
38 {
39
40 FlutterInjector.reset();
41 MockitoAnnotations.openMocks(this);
42 }
◆ tearDown()
void io.flutter.FlutterInjectorTest.tearDown |
( |
| ) |
|
|
inline |
◆ mockDeferredComponentManager
◆ mockExecutorService
ExecutorService io.flutter.FlutterInjectorTest.mockExecutorService |
|
package |
◆ mockFlutterLoader
The documentation for this class was generated from the following file: