@@ -726,7 +726,7 @@ public void itSendsdefaultInitialRouteOnStartIfNotDeepLinkingFromIntent() {
726726 }
727727
728728 @ Test
729- public void itSendsPushRouteMessageWhenOnNewIntent () {
729+ public void itSendsPushRouteInformationMessageWhenOnNewIntent () {
730730 when (mockHost .shouldHandleDeeplinking ()).thenReturn (true );
731731 // Create the real object that we're testing.
732732 FlutterActivityAndFragmentDelegate delegate = new FlutterActivityAndFragmentDelegate (mockHost );
@@ -742,11 +742,11 @@ public void itSendsPushRouteMessageWhenOnNewIntent() {
742742
743743 // Verify that the navigation channel was given the push route message.
744744 verify (mockFlutterEngine .getNavigationChannel (), times (1 ))
745- .pushRoute ("/custom/route?query=test" );
745+ .pushRouteInformation ("/custom/route?query=test" );
746746 }
747747
748748 @ Test
749- public void itDoesNotSendPushRouteMessageWhenOnNewIntentIsNonHierarchicalUri () {
749+ public void itDoesNotSendPushRouteInformationMessageWhenOnNewIntentIsNonHierarchicalUri () {
750750 when (mockHost .shouldHandleDeeplinking ()).thenReturn (true );
751751 // Create the real object that we're testing.
752752 FlutterActivityAndFragmentDelegate delegate = new FlutterActivityAndFragmentDelegate (mockHost );
@@ -764,11 +764,12 @@ public void itDoesNotSendPushRouteMessageWhenOnNewIntentIsNonHierarchicalUri() {
764764 delegate .onNewIntent (mockIntent );
765765
766766 // Verify that the navigation channel was not given a push route message.
767- verify (
mockFlutterEngine .
getNavigationChannel (),
times (
0 )).
pushRoute (
"mailto:[email protected] " );
767+ verify (mockFlutterEngine .getNavigationChannel (), times (0 ))
768+ .
pushRouteInformation (
"mailto:[email protected] " );
768769 }
769770
770771 @ Test
771- public void itSendsPushRouteMessageWhenOnNewIntentWithQueryParameterAndFragment () {
772+ public void itSendsPushRouteInformationMessageWhenOnNewIntentWithQueryParameterAndFragment () {
772773 when (mockHost .shouldHandleDeeplinking ()).thenReturn (true );
773774 // Create the real object that we're testing.
774775 FlutterActivityAndFragmentDelegate delegate = new FlutterActivityAndFragmentDelegate (mockHost );
@@ -785,11 +786,11 @@ public void itSendsPushRouteMessageWhenOnNewIntentWithQueryParameterAndFragment(
785786
786787 // Verify that the navigation channel was given the push route message.
787788 verify (mockFlutterEngine .getNavigationChannel (), times (1 ))
788- .pushRoute ("/custom/route?query=test#fragment" );
789+ .pushRouteInformation ("/custom/route?query=test#fragment" );
789790 }
790791
791792 @ Test
792- public void itSendsPushRouteMessageWhenOnNewIntentWithFragmentNoQueryParameter () {
793+ public void itSendsPushRouteInformationMessageWhenOnNewIntentWithFragmentNoQueryParameter () {
793794 when (mockHost .shouldHandleDeeplinking ()).thenReturn (true );
794795 // Create the real object that we're testing.
795796 FlutterActivityAndFragmentDelegate delegate = new FlutterActivityAndFragmentDelegate (mockHost );
@@ -804,11 +805,12 @@ public void itSendsPushRouteMessageWhenOnNewIntentWithFragmentNoQueryParameter()
804805 delegate .onNewIntent (mockIntent );
805806
806807 // Verify that the navigation channel was given the push route message.
807- verify (mockFlutterEngine .getNavigationChannel (), times (1 )).pushRoute ("/custom/route#fragment" );
808+ verify (mockFlutterEngine .getNavigationChannel (), times (1 ))
809+ .pushRouteInformation ("/custom/route#fragment" );
808810 }
809811
810812 @ Test
811- public void itSendsPushRouteMessageWhenOnNewIntentNoQueryParameter () {
813+ public void itSendsPushRouteInformationMessageWhenOnNewIntentNoQueryParameter () {
812814 when (mockHost .shouldHandleDeeplinking ()).thenReturn (true );
813815 // Create the real object that we're testing.
814816 FlutterActivityAndFragmentDelegate delegate = new FlutterActivityAndFragmentDelegate (mockHost );
@@ -823,7 +825,8 @@ public void itSendsPushRouteMessageWhenOnNewIntentNoQueryParameter() {
823825 delegate .onNewIntent (mockIntent );
824826
825827 // Verify that the navigation channel was given the push route message.
826- verify (mockFlutterEngine .getNavigationChannel (), times (1 )).pushRoute ("/custom/route" );
828+ verify (mockFlutterEngine .getNavigationChannel (), times (1 ))
829+ .pushRouteInformation ("/custom/route" );
827830 }
828831
829832 @ Test
0 commit comments