Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 16, 2023
1 parent 43b08e4 commit 20880dc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.epam.ta.reportportal.ws.model.FinishExecutionRQ;
import com.epam.ta.reportportal.ws.model.FinishTestItemRQ;
import com.epam.ta.reportportal.ws.model.StartTestItemRQ;
import com.intuit.karate.core.Feature;
import com.intuit.karate.core.FeatureResult;
import io.reactivex.Maybe;
import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -46,6 +47,8 @@ public void shouldFinishLaunch() {
@Test
public void shouldStartFeature() {
FeatureResult featureResult = mock(FeatureResult.class);
Feature feature = mock(Feature.class);
when(featureResult.getFeature()).thenReturn(feature);
when(featureResult.getCallNameForReport()).thenReturn("featureName");
when(launchMock.startTestItem(any(StartTestItemRQ.class))).thenReturn(mock(Maybe.class));
reportPortalPublisher.startFeature(featureResult);
Expand Down

0 comments on commit 20880dc

Please sign in to comment.