fix component scan in ContextIntegrationTests
This commit is contained in:
parent
0c969848b0
commit
6152c65282
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user