You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using an annotation @SpringBootTest, make this test working but it's create a whole context, which containers (rabbit) which aren't necessary for run them.
The text was updated successfully, but these errors were encountered:
piotrooo
changed the title
@DataJpaTest test slice doesn't worki with container created in @TestConfiguration
@DataJpaTest test slice doesn't working with container created in @TestConfiguration
Jul 5, 2023
Uh oh!
There was an error while loading. Please reload this page.
For the following containers configuration:
When I try to use it in the repository tests (which are using a slice test annotation
@DataJpaTest
) containers aren't reused and configured correctly.Declare properties in the
@DataJpaTest
works (creates only slice of the context without rabbit), but that seems to be a duplication.Using an annotation
@SpringBootTest
, make this test working but it's create a whole context, which containers (rabbit) which aren't necessary for run them.Spring Boot: 3.1.1
Possible related with #35253.
The text was updated successfully, but these errors were encountered: