This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
shell/platform/android/test/io/flutter/embedding/engine/systemchannels Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,11 +59,12 @@ public void platformChannel_shareInvokeMessage() {
5959 ArgumentCaptor <String > valueCapture = ArgumentCaptor .forClass (String .class );
6060 doNothing ().when (mockMessageHandler ).share (valueCapture .capture ());
6161
62- MethodCall methodCall = new MethodCall ("Share.invoke" , "Flutter" );
62+ final String expectedContent = "Flutter" ;
63+ MethodCall methodCall = new MethodCall ("Share.invoke" , expectedContent );
6364 MethodChannel .Result mockResult = mock (MethodChannel .Result .class );
6465 fakePlatformChannel .parsingMethodCallHandler .onMethodCall (methodCall , mockResult );
6566
66- assertEquals ("Flutter" , valueCapture .getValue ());
67+ assertEquals (valueCapture .getValue (), expectedContent );
6768 verify (mockResult ).success (null );
6869 }
6970}
You can’t perform that action at this time.
0 commit comments