@@ -38,7 +38,6 @@ public class FlutterViewTest {
38
38
JxBrowserUtils mockUtils = mock (JxBrowserUtils .class );
39
39
JxBrowserManager mockJxBrowserManager = mock (JxBrowserManager .class );
40
40
InspectorGroupManagerService mockInspectorGroupManagerService = mock (InspectorGroupManagerService .class );
41
- MessageBusConnection mockBusConnection = mock (MessageBusConnection .class );
42
41
43
42
@ Test
44
43
public void testHandleJxBrowserInstalled () {
@@ -59,7 +58,7 @@ public void testHandleJxBrowserInstallationFailed() {
59
58
when (mockJxBrowserManager .getLatestFailureReason ()).thenReturn (new InstallationFailedReason (FailureType .FILE_DOWNLOAD_FAILED ));
60
59
61
60
// If JxBrowser failed to install, we should show a failure message that allows the user to manually retry.
62
- final FlutterView flutterView = new FlutterView (mockProject , mockJxBrowserManager , mockJxBrowserUtils , mockInspectorGroupManagerService , mockBusConnection );
61
+ final FlutterView flutterView = new FlutterView (mockProject , mockJxBrowserManager , mockJxBrowserUtils , mockInspectorGroupManagerService );
63
62
final FlutterView spy = spy (flutterView );
64
63
doNothing ().when (spy ).presentClickableLabel (
65
64
eq (mockToolWindow ),
@@ -79,7 +78,7 @@ public void testHandleJxBrowserInstallationInProgressWithSuccessfulInstall() {
79
78
80
79
// If the JxBrowser installation is initially in progress, we should show a message about the installation.
81
80
// If the installation quickly finishes (on the first re-check), then we should call the function to handle successful installation.
82
- final FlutterView flutterView = new FlutterView (mockProject , mockJxBrowserManager , mockUtils , mockInspectorGroupManagerService , mockBusConnection );
81
+ final FlutterView flutterView = new FlutterView (mockProject , mockJxBrowserManager , mockUtils , mockInspectorGroupManagerService );
83
82
final FlutterView spy = spy (flutterView );
84
83
85
84
doNothing ().when (spy ).presentOpenDevToolsOptionWithMessage (any (), any (), any (), any ());
@@ -97,7 +96,7 @@ public void testHandleJxBrowserInstallationInProgressWaiting() {
97
96
98
97
// If the JxBrowser installation is in progress and is not finished on the first re-check, we should start a thread to wait for the
99
98
// installation to finish.
100
- final FlutterView flutterView = new FlutterView (mockProject , mockJxBrowserManager , mockUtils , mockInspectorGroupManagerService , mockBusConnection );
99
+ final FlutterView flutterView = new FlutterView (mockProject , mockJxBrowserManager , mockUtils , mockInspectorGroupManagerService );
101
100
final FlutterView spy = spy (flutterView );
102
101
103
102
doNothing ().when (spy ).presentOpenDevToolsOptionWithMessage (any (), any (), any (), any ());
@@ -115,7 +114,7 @@ public void testWaitForJxBrowserInstallationWithoutTimeout() throws TimeoutExcep
115
114
when (mockJxBrowserManager .waitForInstallation (INSTALLATION_WAIT_LIMIT_SECONDS )).thenReturn (JxBrowserStatus .INSTALLATION_FAILED );
116
115
117
116
// If waiting for JxBrowser installation completes without timing out, then we should return to event thread.
118
- final FlutterView flutterView = new FlutterView (mockProject , mockJxBrowserManager , mockUtils , mockInspectorGroupManagerService , mockBusConnection );
117
+ final FlutterView flutterView = new FlutterView (mockProject , mockJxBrowserManager , mockUtils , mockInspectorGroupManagerService );
119
118
final FlutterView spy = spy (flutterView );
120
119
121
120
doNothing ().when (spy ).handleUpdatedJxBrowserStatusOnEventThread (any (), any (), any (), any ());
@@ -132,7 +131,7 @@ public void testWaitForJxBrowserInstallationWithTimeout() throws TimeoutExceptio
132
131
when (mockJxBrowserManager .waitForInstallation (INSTALLATION_WAIT_LIMIT_SECONDS )).thenThrow (new TimeoutException ());
133
132
134
133
// If the JxBrowser installation doesn't complete on time, we should show a timed out message.
135
- final FlutterView flutterView = new FlutterView (mockProject , mockJxBrowserManager , mockUtils , mockInspectorGroupManagerService , mockBusConnection );
134
+ final FlutterView flutterView = new FlutterView (mockProject , mockJxBrowserManager , mockUtils , mockInspectorGroupManagerService );
136
135
final FlutterView spy = spy (flutterView );
137
136
138
137
doNothing ().when (spy ).presentOpenDevToolsOptionWithMessage (any (), any (), any (), any ());
0 commit comments