@@ -27,45 +27,42 @@ import com.zhokhov.dumper.test.ProdDataTestService
27
27
import io.micronaut.test.extensions.junit5.annotation.MicronautTest
28
28
import org.junit.jupiter.api.Test
29
29
import javax.inject.Inject
30
- import kotlin.test.assertEquals
31
- import kotlin.test.assertFalse
32
- import kotlin.test.assertNotNull
33
- import kotlin.test.assertNull
34
- import kotlin.test.assertTrue
30
+ import kotlin.test.*
35
31
36
32
@MicronautTest(transactional = false )
37
33
class ExportDeclarationCreateServerMutationTests : AbstractTest () {
38
34
39
- @Inject lateinit var prodDataTestService: ProdDataTestService
35
+ @Inject
36
+ lateinit var prodDataTestService: ProdDataTestService
40
37
41
38
@Test
42
39
fun `not authorized` () {
43
40
/* * WHEN **/
44
41
val exportDeclarationCreateResult = graphQlClient.blockingMutate(
45
- ExportDeclarationCreateMutation .builder()
46
- .input(
47
- ExportDeclarationCreateInput .builder()
48
- .description(" Test" )
49
- .destination(ExportDeclarationDestination .JSON )
50
- .sourceDatabaseName(" test" )
51
- .items(
52
- listOf (
53
- ExportItemInput .builder()
54
- .sourceTableName(" account" )
55
- .sourcePrimaryKey(
56
- listOf (
57
- FieldValueInput .builder()
58
- .field(" id" )
59
- .value(" 1" )
60
- .build()
61
- )
62
- )
63
- .build()
64
- )
42
+ ExportDeclarationCreateMutation .builder()
43
+ .input(
44
+ ExportDeclarationCreateInput .builder()
45
+ .description(" Test" )
46
+ .destination(ExportDeclarationDestination .JSON )
47
+ .sourceDatabaseName(" test" )
48
+ .items(
49
+ listOf (
50
+ ExportItemInput .builder()
51
+ .sourceTableName(" account" )
52
+ .sourcePrimaryKey(
53
+ listOf (
54
+ FieldValueInput .builder()
55
+ .field(" id" )
56
+ .value(" 1" )
57
+ .build()
65
58
)
66
- .build()
59
+ )
60
+ .build()
61
+ )
67
62
)
68
63
.build()
64
+ )
65
+ .build()
69
66
)
70
67
71
68
/* * THEN **/
@@ -93,30 +90,30 @@ class ExportDeclarationCreateServerMutationTests : AbstractTest() {
93
90
94
91
/* * WHEN **/
95
92
val exportDeclarationCreateResult = graphQlClient.blockingMutate(
96
- ExportDeclarationCreateMutation .builder()
97
- .input(
98
- ExportDeclarationCreateInput .builder()
99
- .description(" Export Account #1" )
100
- .destination(ExportDeclarationDestination .JSON )
101
- .sourceDatabaseName(" example" )
102
- .items(
103
- listOf (
104
- ExportItemInput .builder()
105
- .sourceTableName(" account" )
106
- .sourcePrimaryKey(
107
- listOf (
108
- FieldValueInput .builder()
109
- .field(" id" )
110
- .value(" 1" )
111
- .build()
112
- )
113
- )
114
- .build()
115
- )
93
+ ExportDeclarationCreateMutation .builder()
94
+ .input(
95
+ ExportDeclarationCreateInput .builder()
96
+ .description(" Export Account #1" )
97
+ .destination(ExportDeclarationDestination .JSON )
98
+ .sourceDatabaseName(" example" )
99
+ .items(
100
+ listOf (
101
+ ExportItemInput .builder()
102
+ .sourceTableName(" account" )
103
+ .sourcePrimaryKey(
104
+ listOf (
105
+ FieldValueInput .builder()
106
+ .field(" id" )
107
+ .value(" 1" )
108
+ .build()
116
109
)
117
- .build()
110
+ )
111
+ .build()
112
+ )
118
113
)
119
114
.build()
115
+ )
116
+ .build()
120
117
)
121
118
122
119
/* * THEN **/
0 commit comments