Skip to content

Commit

Permalink
chore: disabled flyway in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nemo83 committed Jan 24, 2024
1 parent 6ca15db commit 4d298f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.autoconfigure.jdbc.JdbcTest;
import org.springframework.test.context.ActiveProfiles;

@JdbcTest
@ActiveProfiles("test")
class MetadataApiApplicationTests {
@Test
void contextLoads() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Import;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
import org.springframework.web.context.WebApplicationContext;

@WebMvcTest(MetadataApiController.class)
@Import(SpringWebSecurityConfig.class)
@ActiveProfiles("test")
public class MetadataApiV1IntegrationTest {

@Autowired private WebApplicationContext context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Import;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
import org.springframework.web.context.WebApplicationContext;

@WebMvcTest(V2ApiController.class)
@Import(SpringWebSecurityConfig.class)
@ActiveProfiles("test")
public class MetadataApiV2IntegrationTest {

@Autowired private WebApplicationContext context;
Expand Down

0 comments on commit 4d298f1

Please sign in to comment.