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 82707b4 commit 0ffaeb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies {
implementation 'org.apache.httpcomponents:httpcore:4.4.16'

testImplementation "com.epam.reportportal:client-java:${client_version}"
testImplementation 'com.epam.reportportal:agent-java-test-utils:0.0.2'
testImplementation 'com.epam.reportportal:agent-java-test-utils:0.0.7'

testImplementation("org.junit.platform:junit-platform-runner:${junit5_runner_version}") {
exclude module: 'junit'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,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 org.apache.commons.lang3.tuple.Pair;
import org.apache.commons.lang3.tuple.Triple;
Expand Down Expand Up @@ -136,7 +137,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 0ffaeb9

Please sign in to comment.