Skip to content

Commit

Permalink
[BA-198][chore] fix IrsConnectionHealthIndicatorTest with removing un…
Browse files Browse the repository at this point in the history
…used field
  • Loading branch information
rogocof committed Mar 7, 2024
1 parent 2745c73 commit 3963d8e
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@
package org.eclipse.tractusx.traceability.common.actuator;

import org.eclipse.tractusx.traceability.assets.infrastructure.base.irs.IrsClient;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.boot.actuate.health.Health;
import org.springframework.test.util.ReflectionTestUtils;

import java.util.List;

Expand All @@ -44,12 +42,6 @@ class IrsConnectionHealthIndicatorTest {
private IrsConnectionHealthIndicator testee;


@BeforeEach
public void setUp() {
ReflectionTestUtils.setField(testee, "adminApiKey", API_KEY);
}


@Test
void healthShouldReturnStatusUp() {
when(apiClient.getPolicies()).thenReturn(List.of());
Expand Down

0 comments on commit 3963d8e

Please sign in to comment.