fix component scan in ContextIntegrationTests
This commit is contained in:
parent
0c969848b0
commit
6152c65282
@ -1,6 +1,7 @@
|
|||||||
package net.hostsharing.hsadminng.rbac.context;
|
package net.hostsharing.hsadminng.rbac.context;
|
||||||
|
|
||||||
import net.hostsharing.hsadminng.context.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.Array;
|
||||||
import net.hostsharing.hsadminng.rbac.test.JpaAttempt;
|
import net.hostsharing.hsadminng.rbac.test.JpaAttempt;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
@ -16,7 +17,7 @@ import jakarta.servlet.http.HttpServletRequest;
|
|||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
@DataJpaTest
|
@DataJpaTest
|
||||||
@ComponentScan(basePackageClasses = { Context.class, JpaAttempt.class })
|
@ComponentScan(basePackageClasses = { Context.class, JpaAttempt.class, Mapper.class })
|
||||||
@DirtiesContext
|
@DirtiesContext
|
||||||
class ContextIntegrationTests {
|
class ContextIntegrationTests {
|
||||||
|
|
||||||
@ -24,6 +25,7 @@ class ContextIntegrationTests {
|
|||||||
private Context context;
|
private Context context;
|
||||||
|
|
||||||
@MockBean
|
@MockBean
|
||||||
|
@SuppressWarnings("unused") // the bean must be present, even though it's not used directly
|
||||||
private HttpServletRequest request;
|
private HttpServletRequest request;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
Loading…
Reference in New Issue
Block a user