Use @ExtendWith(SpringExtension::class)

This commit is contained in:
Rob Winch 2021-07-09 15:25:40 -05:00
parent 3b3ccb962d
commit cc732bda3b
1 changed files with 3 additions and 3 deletions

View File

@ -27,16 +27,16 @@ import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatExceptionOfType
import org.junit.After
import org.junit.jupiter.api.Test
import org.junit.runner.RunWith
import org.junit.jupiter.api.extension.ExtendWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.access.AccessDeniedException
import org.springframework.security.test.context.support.WithMockUser
import org.springframework.test.context.ContextConfiguration
import org.springframework.test.context.junit4.SpringRunner
import org.springframework.test.context.junit.jupiter.SpringExtension
@RunWith(SpringRunner::class)
@ExtendWith(SpringExtension::class)
@ContextConfiguration
class KotlinEnableReactiveMethodSecurityTests {