Skip to content

Commit 3d69d8a

Browse files
committed
SeriesServiceImplTest: use parameters in test names to make the names unique.
No functional changes.
1 parent d25cf53 commit 3d69d8a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/groovy/ru/mystamps/web/service/SeriesServiceImplTest.groovy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class SeriesServiceImplTest extends Specification {
232232
'UnnecessaryReturnKeyword',
233233
'LineLength',
234234
])
235-
def "add() should pass michel price and currency to series dao"(BigDecimal expectedPrice, String expectedCurrency) {
235+
def "add() should pass michel price (#expectedPrice) and currency (#expectedCurrency) to series dao"(BigDecimal expectedPrice, String expectedCurrency) {
236236
given:
237237
form.setMichelPrice(expectedPrice)
238238
when:
@@ -255,7 +255,7 @@ class SeriesServiceImplTest extends Specification {
255255
'LineLength',
256256
'UnnecessaryReturnKeyword',
257257
])
258-
def "add() should pass scott price and currency to series dao"(BigDecimal expectedPrice, String expectedCurrency) {
258+
def "add() should pass scott price (#expectedPrice) and currency (#expectedCurrency) to series dao"(BigDecimal expectedPrice, String expectedCurrency) {
259259
given:
260260
form.setScottPrice(expectedPrice)
261261
when:
@@ -278,7 +278,7 @@ class SeriesServiceImplTest extends Specification {
278278
'LineLength',
279279
'UnnecessaryReturnKeyword',
280280
])
281-
def "add() should pass yvert price and currency to series dao"(BigDecimal expectedPrice, String expectedCurrency) {
281+
def "add() should pass yvert price (#expectedPrice) and currency (#expectedCurrency) to series dao"(BigDecimal expectedPrice, String expectedCurrency) {
282282
given:
283283
form.setYvertPrice(expectedPrice)
284284
when:
@@ -301,7 +301,7 @@ class SeriesServiceImplTest extends Specification {
301301
'LineLength',
302302
'UnnecessaryReturnKeyword',
303303
])
304-
def "add() should pass gibbons price and currency to series dao"(BigDecimal expectedPrice, String expectedCurrency) {
304+
def "add() should pass gibbons price (#expectedPrice) and currency (#expectedCurrency) to series dao"(BigDecimal expectedPrice, String expectedCurrency) {
305305
given:
306306
form.setGibbonsPrice(expectedPrice)
307307
when:
@@ -793,7 +793,7 @@ class SeriesServiceImplTest extends Specification {
793793
'LineLength',
794794
/* false positive: */ 'UnnecessaryBooleanExpression',
795795
])
796-
def "isSeriesExist() should invoke dao, pass argument and return result from dao"(Integer daoReturnValue, boolean expectedResult) {
796+
def "isSeriesExist() should return #expectedResult when dao returns #daoReturnValue"(Integer daoReturnValue, boolean expectedResult) {
797797
given:
798798
Integer expectedSeriesId = 13
799799
when:

0 commit comments

Comments
 (0)