We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2513ecc commit 1196fb4Copy full SHA for 1196fb4
transport/jsonrpc/src/test/java/io/a2a/transport/jsonrpc/handler/JSONRPCHandlerTest.java
@@ -186,7 +186,8 @@ public void testOnMessageNewMessageSuccessMocks() {
186
SendMessageResponse response;
187
try (MockedConstruction<EventConsumer> mocked = Mockito.mockConstruction(
188
EventConsumer.class,
189
- (mock, context) -> {Mockito.doReturn(ZeroPublisher.fromItems(wrapEvent(MINIMAL_TASK))).when(mock).consumeAll();})){
+ (mock, context) -> {Mockito.doReturn(ZeroPublisher.fromItems(wrapEvent(MINIMAL_TASK))).when(mock).consumeAll();
190
+ Mockito.doCallRealMethod().when(mock).createAgentRunnableDoneCallback();})){
191
response = handler.onMessageSend(request, callContext);
192
}
193
assertNull(response.getError());
0 commit comments