-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActionServiceTest.kt
More file actions
30 lines (26 loc) · 938 Bytes
/
ActionServiceTest.kt
File metadata and controls
30 lines (26 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.example.demo
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Import
import org.springframework.security.config.annotation.method.configuration.EnableReactiveMethodSecurity
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity
import org.springframework.test.context.ContextConfiguration
import org.springframework.test.context.junit.jupiter.SpringExtension
@ExtendWith(SpringExtension::class)
@ContextConfiguration(classes = [ActionServiceImpl::class])
@Import(TestSecurityConfig::class)
class ActionServiceTest {
@Autowired
lateinit var actionService: ActionService
@Test
fun save() {
val action = Action(
userId = 1
)
runBlocking {
actionService.save(action)
}
}
}