File tree 2 files changed +4
-8
lines changed
src/test/java/ru/mystamps/web/feature
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 23
23
import org .springframework .beans .factory .annotation .Autowired ;
24
24
import org .springframework .boot .test .autoconfigure .jdbc .JdbcTest ;
25
25
import org .springframework .test .context .ContextConfiguration ;
26
- import org .springframework .test .context .TestPropertySource ;
27
26
import org .springframework .test .context .jdbc .Sql ;
28
27
import org .springframework .test .context .junit .jupiter .SpringExtension ;
29
28
import ru .mystamps .web .config .DaoConfig ;
30
29
import ru .mystamps .web .tests .Random ;
31
30
32
31
import java .util .Map ;
33
32
34
- @ JdbcTest
35
- @ ContextConfiguration (classes = DaoConfig .class )
36
- @ TestPropertySource (
33
+ @ JdbcTest (
37
34
properties = {
38
35
// don't load test data, start with an empty database
39
36
"spring.liquibase.contexts=scheme,init-data" ,
40
37
// overrides settings from application-test.properties to keep the console clean,
41
38
// comment this out when you need to debug tests. See also logback-test.xml
42
39
"logging.level.root=WARN" , "logging.level.ru.mystamps=WARN"
43
40
})
41
+ @ ContextConfiguration (classes = DaoConfig .class )
44
42
@ ExtendWith (SpringExtension .class )
45
43
public class JdbcCategoryDaoTest implements WithAssertions {
46
44
Original file line number Diff line number Diff line change 23
23
import org .springframework .beans .factory .annotation .Autowired ;
24
24
import org .springframework .boot .test .autoconfigure .jdbc .JdbcTest ;
25
25
import org .springframework .test .context .ContextConfiguration ;
26
- import org .springframework .test .context .TestPropertySource ;
27
26
import org .springframework .test .context .jdbc .Sql ;
28
27
import org .springframework .test .context .junit .jupiter .SpringExtension ;
29
28
import ru .mystamps .web .config .DaoConfig ;
30
29
import ru .mystamps .web .tests .Random ;
31
30
32
31
import java .util .Map ;
33
32
34
- @ JdbcTest
35
- @ ContextConfiguration (classes = DaoConfig .class )
36
- @ TestPropertySource (
33
+ @ JdbcTest (
37
34
properties = {
38
35
// don't load test data, start with an empty database
39
36
"spring.liquibase.contexts=scheme,init-data" ,
40
37
// overrides settings from application-test.properties to keep the console clean,
41
38
// comment this out when you need to debug tests. See also logback-test.xml
42
39
"logging.level.root=WARN" , "logging.level.ru.mystamps=WARN"
43
40
})
41
+ @ ContextConfiguration (classes = DaoConfig .class )
44
42
@ ExtendWith (SpringExtension .class )
45
43
public class JdbcCountryDaoTest implements WithAssertions {
46
44
You can’t perform that action at this time.
0 commit comments