Skip to content

Commit

Permalink
DirtiesContext configured
Browse files Browse the repository at this point in the history
  • Loading branch information
PBobylev committed Nov 28, 2024
1 parent a8f0902 commit a35988b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.web.servlet.MockMvc;

@IntegrationTest
@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)
class ReIndexControllerIT {

public static final String INDEX_URL = "/linked-data/reindex";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.annotation.DirtiesContext.HierarchyMode;
import org.springframework.test.context.ActiveProfiles;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@EnableOkapi
@EnableKafka
@EnablePostgres
@DirtiesContext
@DirtiesContext(hierarchyMode = HierarchyMode.EXHAUSTIVE)
@AutoConfigureMockMvc
@ActiveProfiles("test")
@org.folio.spring.testing.type.IntegrationTest
Expand Down

0 comments on commit a35988b

Please sign in to comment.