Skip to content

Commit b84bbe1

Browse files
disable .sql scripts intitialization (#18817)
1 parent 23d9156 commit b84bbe1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

persistence-modules/hibernate6/src/test/java/com/baeldung/statelesssession/StatelessSessionIntegrationTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@
1010
import org.junit.jupiter.api.Test;
1111
import org.springframework.beans.factory.annotation.Autowired;
1212
import org.springframework.boot.test.context.SpringBootTest;
13+
import org.springframework.test.context.TestPropertySource;
1314

1415
import static org.assertj.core.api.Assertions.assertThat;
1516
import static org.junit.jupiter.api.Assertions.assertThrows;
1617

1718
@SpringBootTest(classes = Application.class)
19+
@TestPropertySource(properties = {
20+
"spring.sql.init.mode=never"
21+
})
1822
class StatelessSessionIntegrationTest {
1923

2024
@Autowired

0 commit comments

Comments
 (0)