15
15
*/
16
16
package nl.nlportal.klant.graphql
17
17
18
+ import mu.KotlinLogging
18
19
import nl.nlportal.commonground.authentication.WithBurgerUser
19
20
import nl.nlportal.klant.TestHelper
20
21
import nl.nlportal.klant.generiek.client.OpenKlantClientConfig
@@ -33,6 +34,7 @@ import org.springframework.boot.test.context.SpringBootTest
33
34
import org.springframework.http.MediaType
34
35
import org.springframework.http.MediaType.APPLICATION_JSON
35
36
import org.springframework.test.web.reactive.server.WebTestClient
37
+ import java.util.function.Consumer
36
38
37
39
@SpringBootTest
38
40
@AutoConfigureWebTestClient(timeout = " 36000" )
@@ -42,6 +44,7 @@ internal class BurgerMutationIT(
42
44
@Autowired private val openKlantClientConfig : OpenKlantClientConfig ,
43
45
) {
44
46
lateinit var server: MockWebServer
47
+ private val logger = KotlinLogging .logger {}
45
48
46
49
@BeforeEach
47
50
internal fun setUp () {
@@ -63,10 +66,11 @@ internal class BurgerMutationIT(
63
66
"""
64
67
mutation {
65
68
updateBurgerProfiel(
66
- klant: { telefoonnummer: "0611111111", emailadres: "[email protected] " }
69
+ klant: { telefoonnummer: "0611111111", emailadres: "[email protected] ", aanmaakkanaal: "EMAIL" }
67
70
) {
68
71
telefoonnummer
69
- emailadres
72
+ emailadres,
73
+ aanmaakkanaal
70
74
}
71
75
}
72
76
""" .trimIndent()
@@ -80,6 +84,7 @@ internal class BurgerMutationIT(
80
84
.bodyValue(mutation)
81
85
.exchange()
82
86
.expectBody()
87
+ .consumeWith(Consumer { t -> logger.info { t } })
83
88
.jsonPath(basePath).exists()
84
89
.jsonPath(" $basePath .telefoonnummer" ).isEqualTo(" 0611111111" )
85
90
.jsonPath(
" $basePath .emailadres" ).isEqualTo(
" [email protected] " )
0 commit comments