diff --git a/src/test/java/net/hostsharing/hsadminng/rbac/context/ContextIntegrationTests.java b/src/test/java/net/hostsharing/hsadminng/rbac/context/ContextIntegrationTests.java index 774f5847..11cda37f 100644 --- a/src/test/java/net/hostsharing/hsadminng/rbac/context/ContextIntegrationTests.java +++ b/src/test/java/net/hostsharing/hsadminng/rbac/context/ContextIntegrationTests.java @@ -1,6 +1,7 @@ package net.hostsharing.hsadminng.rbac.context; import net.hostsharing.hsadminng.context.Context; +import net.hostsharing.hsadminng.mapper.Mapper; import net.hostsharing.hsadminng.rbac.test.Array; import net.hostsharing.hsadminng.rbac.test.JpaAttempt; import org.junit.jupiter.api.Test; @@ -16,7 +17,7 @@ import jakarta.servlet.http.HttpServletRequest; import static org.assertj.core.api.Assertions.assertThat; @DataJpaTest -@ComponentScan(basePackageClasses = { Context.class, JpaAttempt.class }) +@ComponentScan(basePackageClasses = { Context.class, JpaAttempt.class, Mapper.class }) @DirtiesContext class ContextIntegrationTests { @@ -24,6 +25,7 @@ class ContextIntegrationTests { private Context context; @MockBean + @SuppressWarnings("unused") // the bean must be present, even though it's not used directly private HttpServletRequest request; @Autowired