Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Jan 22, 2025
1 parent b6d31fe commit f757344
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -192,7 +193,7 @@ private Triple<List<String>, List<String>, List<ReportPortalMessage>> 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);
Expand Down

0 comments on commit f757344

Please sign in to comment.