@@ -86,7 +86,7 @@ class CountryServiceImplTest extends Specification {
86
86
87
87
def " add() should call dao" () {
88
88
given :
89
- Integer expectedId = 7
89
+ Integer expectedId = 10
90
90
and :
91
91
form. setName(' Example Country' )
92
92
and :
@@ -111,7 +111,7 @@ class CountryServiceImplTest extends Specification {
111
111
1 * jdbcCountryDao. add({ AddCountryDbDto country ->
112
112
assert country?. name == expectedCountryName
113
113
return true
114
- }) >> 10
114
+ }) >> 20
115
115
}
116
116
117
117
def " add() should pass country name on Russian to dao" () {
@@ -124,7 +124,7 @@ class CountryServiceImplTest extends Specification {
124
124
1 * jdbcCountryDao. add({ AddCountryDbDto country ->
125
125
assert country?. nameRu == expectedCountryName
126
126
return true
127
- }) >> 20
127
+ }) >> 30
128
128
}
129
129
130
130
def " add() should throw exception when name can't be converted to slug" () {
@@ -149,7 +149,7 @@ class CountryServiceImplTest extends Specification {
149
149
1 * jdbcCountryDao. add({ AddCountryDbDto country ->
150
150
assert country?. slug == slug
151
151
return true
152
- }) >> 30
152
+ }) >> 40
153
153
}
154
154
155
155
def " add() should assign created at to current date" () {
@@ -159,7 +159,7 @@ class CountryServiceImplTest extends Specification {
159
159
1 * jdbcCountryDao. add({ AddCountryDbDto country ->
160
160
assert DateUtils . roughlyEqual(country?. createdAt, new Date ())
161
161
return true
162
- }) >> 40
162
+ }) >> 50
163
163
}
164
164
165
165
def " add() should assign updated at to current date" () {
@@ -169,7 +169,7 @@ class CountryServiceImplTest extends Specification {
169
169
1 * jdbcCountryDao. add({ AddCountryDbDto country ->
170
170
assert DateUtils . roughlyEqual(country?. updatedAt, new Date ())
171
171
return true
172
- }) >> 50
172
+ }) >> 60
173
173
}
174
174
175
175
def " add() should assign created by to user" () {
@@ -179,7 +179,7 @@ class CountryServiceImplTest extends Specification {
179
179
1 * jdbcCountryDao. add({ AddCountryDbDto country ->
180
180
assert country?. createdBy == user. id
181
181
return true
182
- }) >> 60
182
+ }) >> 70
183
183
}
184
184
185
185
def " add() should assign updated by to user" () {
@@ -189,7 +189,7 @@ class CountryServiceImplTest extends Specification {
189
189
1 * jdbcCountryDao. add({ AddCountryDbDto country ->
190
190
assert country?. updatedBy == user. id
191
191
return true
192
- }) >> 70
192
+ }) >> 80
193
193
}
194
194
195
195
//
0 commit comments