File tree 1 file changed +16
-0
lines changed
src/test/groovy/ru/mystamps/web/service
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,22 @@ class TransactionParticipantServiceImplTest extends Specification {
131
131
result == expectedResult
132
132
}
133
133
134
+ //
135
+ // Tests for findSellersWithParents()
136
+ //
137
+
138
+ @SuppressWarnings ([' ClosureAsLastMethodParameter' , ' UnnecessaryReturnKeyword' ])
139
+ def ' findSellersWithParents() should invoke dao and return its result' () {
140
+ given :
141
+ List<TransactionParticipantDto > expectedResult = Random . listOfTransactionParticipantDto()
142
+ when :
143
+ List<TransactionParticipantDto > result = service. findSellersWithParents()
144
+ then :
145
+ 1 * transactionParticipantDao. findSellersWithParents() >> expectedResult
146
+ and :
147
+ result == expectedResult
148
+ }
149
+
134
150
//
135
151
// Tests for findAllGroups()
136
152
//
You can’t perform that action at this time.
0 commit comments