29 lines
1.5 KiB
Plaintext
29 lines
1.5 KiB
Plaintext
-------------------------------------------------------------------------------
|
|
Test set: com.example.service.unit_testing.DialogflowClientServiceTest
|
|
-------------------------------------------------------------------------------
|
|
Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.974 s <<< FAILURE! -- in com.example.service.unit_testing.DialogflowClientServiceTest
|
|
com.example.service.unit_testing.DialogflowClientServiceTest.detectIntent_whenSuccess_shouldReturnMappedResponse -- Time elapsed: 0.478 s <<< FAILURE!
|
|
Wanted but not invoked:
|
|
mockSessionsClient.detectIntent(
|
|
session: "projects/test-project/locations/us-central1/agents/test-agent/sessions/test-session-123"
|
|
|
|
);
|
|
-> at com.google.cloud.dialogflow.cx.v3.SessionsClient.detectIntent(SessionsClient.java:326)
|
|
|
|
However, there was exactly 1 interaction with this mock:
|
|
mockSessionsClient.detectIntent(
|
|
session: "projects/test-project/locations/us-central1/agents/test-agent/sessions/test-session-123"
|
|
query_params {
|
|
}
|
|
|
|
);
|
|
-> at com.example.service.base.DialogflowClientService.lambda$0(DialogflowClientService.java:127)
|
|
|
|
|
|
at com.google.cloud.dialogflow.cx.v3.SessionsClient.detectIntent(SessionsClient.java:326)
|
|
at com.example.service.unit_testing.DialogflowClientServiceTest.detectIntent_whenSuccess_shouldReturnMappedResponse(DialogflowClientServiceTest.java:110)
|
|
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
|