Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c21adda

Browse files
committed
fix test
1 parent 3308180 commit c21adda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shell/platform/android/test/io/flutter/embedding/android/FlutterActivityAndFragmentDelegateTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public void flutterEngineGroupGetsInitialRouteFromIntent() {
308308
ArgumentCaptor<FlutterEngineGroup.Options> optionsCaptor =
309309
ArgumentCaptor.forClass(FlutterEngineGroup.Options.class);
310310
verify(flutterEngineGroup, times(1)).createAndRunEngine(optionsCaptor.capture());
311-
assertEquals("/initial_route", optionsCaptor.getValue().getInitialRoute());
311+
assertEquals("foo://example.com/initial_route", optionsCaptor.getValue().getInitialRoute());
312312
}
313313

314314
@Test
@@ -821,7 +821,7 @@ public void itSendsPushRouteInformationMessageWhenOnNewIntent() {
821821
}
822822

823823
@Test
824-
public void itDoesNotSendPushRouteInformationMessageWhenOnNewIntentIsNonHierarchicalUri() {
824+
public void itDoesSendPushRouteInformationMessageWhenOnNewIntentIsNonHierarchicalUri() {
825825
when(mockHost.shouldHandleDeeplinking()).thenReturn(true);
826826
// Create the real object that we're testing.
827827
FlutterActivityAndFragmentDelegate delegate = new FlutterActivityAndFragmentDelegate(mockHost);
@@ -839,7 +839,7 @@ public void itDoesNotSendPushRouteInformationMessageWhenOnNewIntentIsNonHierarch
839839
delegate.onNewIntent(mockIntent);
840840

841841
// Verify that the navigation channel was not given a push route message.
842-
verify(mockFlutterEngine.getNavigationChannel(), times(0))
842+
verify(mockFlutterEngine.getNavigationChannel(), times(1))
843843
.pushRouteInformation("mailto:[email protected]");
844844
}
845845

0 commit comments

Comments
 (0)