Skip to content

Commit

Permalink
MODEXPW-488 - fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alekGbuz committed Sep 17, 2024
1 parent ee0dc96 commit 18d9416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/test/java/org/folio/dew/BaseBatchTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.folio.dew.batch.ExportJobManagerSync;
import org.folio.dew.client.ConsortiaClient;
import org.folio.dew.client.SearchClient;
import org.folio.dew.client.UserPermissionsClient;
import org.folio.dew.domain.dto.BatchIdsDto;
import org.folio.dew.domain.dto.ConsortiumHolding;
import org.folio.dew.domain.dto.ConsortiumHoldingCollection;
Expand Down Expand Up @@ -115,6 +116,8 @@ public abstract class BaseBatchTest {
private SearchClient searchClient;
@MockBean
private ConsortiaClient consortiaClient;
@MockBean
protected UserPermissionsClient userPermissionsClient;

static {
postgreDBContainer.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
import lombok.SneakyThrows;
import org.folio.dew.BaseBatchTest;
import org.folio.dew.batch.bulkedit.jobs.permissions.check.UserPermissions;
import org.folio.dew.client.UserPermissionsClient;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.web.servlet.MockMvc;

import java.util.List;

Expand All @@ -19,9 +15,6 @@

class PermissionsSelfCheckControllerTest extends BaseBatchTest {

@MockBean
private UserPermissionsClient userPermissionsClient;

@Test
@SneakyThrows
void shouldReturnDesiredPermissions() {
Expand Down

0 comments on commit 18d9416

Please sign in to comment.