From f75734425c1de47db8f2245ef7518883ae159989 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Wed, 22 Jan 2025 17:50:54 +0300 Subject: [PATCH] Fix tests --- .../okhttp3/ReportPortalOkHttp3LoggingInterceptorTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/epam/reportportal/okhttp3/ReportPortalOkHttp3LoggingInterceptorTest.java b/src/test/java/com/epam/reportportal/okhttp3/ReportPortalOkHttp3LoggingInterceptorTest.java index 61ff1c8..c53fbaa 100644 --- a/src/test/java/com/epam/reportportal/okhttp3/ReportPortalOkHttp3LoggingInterceptorTest.java +++ b/src/test/java/com/epam/reportportal/okhttp3/ReportPortalOkHttp3LoggingInterceptorTest.java @@ -25,6 +25,7 @@ import com.epam.reportportal.service.Launch; import com.epam.reportportal.service.ReportPortal; import com.epam.reportportal.service.step.StepReporter; +import com.epam.reportportal.util.test.CommonUtils; import com.epam.reportportal.utils.files.Utils; import com.epam.reportportal.utils.http.ContentType; import okhttp3.*; @@ -192,7 +193,7 @@ private Triple, List, List> runChainCo StepReporter reporter = mock(StepReporter.class); utilities.when(Launch::currentLaunch).thenReturn(launch); when(launch.getStepReporter()).thenReturn(reporter); - doNothing().when(reporter).sendStep(any(ItemStatus.class), stepCaptor.capture()); + when(reporter.sendStep(any(ItemStatus.class), stepCaptor.capture())).thenReturn(CommonUtils.createMaybeUuid()); runChain(request, response, mock -> { mock.when(() -> ReportPortal.emitLog(stringArgumentCaptor.capture(), anyString(), any(Date.class))) .thenReturn(Boolean.TRUE);