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

Commit e16c704

Browse files
committed
Introduce 'expectedContent' variable in test
1 parent 055cfd5 commit e16c704

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

shell/platform/android/test/io/flutter/embedding/engine/systemchannels/PlatformChannelTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)