File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed
main/kotlin/com/example/demo
test/kotlin/com/example/demo Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,5 @@ import org.springframework.validation.beanvalidation.MethodValidationPostProcess
7
7
8
8
@Configuration
9
9
class AppConfig {
10
- @Bean
11
- fun validationPostProcessor (): MethodValidationPostProcessor {
12
- return MethodValidationPostProcessor ()
13
- }
10
+
14
11
}
Original file line number Diff line number Diff line change @@ -6,18 +6,12 @@ import org.junit.jupiter.api.Assertions.assertThrows
6
6
import org.junit.jupiter.api.Test
7
7
import org.junit.jupiter.api.extension.ExtendWith
8
8
import org.springframework.beans.factory.annotation.Autowired
9
+ import org.springframework.boot.test.context.SpringBootTest
9
10
import org.springframework.context.annotation.Import
10
11
import org.springframework.test.context.ContextConfiguration
11
12
import org.springframework.test.context.junit.jupiter.SpringExtension
12
13
13
- @ExtendWith(SpringExtension ::class )
14
- @Import(
15
- value = [
16
- Repository ::class ,
17
- AppConfig ::class
18
- ]
19
- )
20
- @ContextConfiguration
14
+ @SpringBootTest
21
15
class RepositoryTest {
22
16
23
17
@Autowired
You can’t perform that action at this time.
0 commit comments