Skip to content

Commit 2f23265

Browse files
committed
SeriesInfoExtractorServiceImplTest: modify test to use @unroll and where block.
Required for #789 No functional changes.
1 parent 2378aad commit 2f23265

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,13 @@ class SeriesInfoExtractorServiceImplTest extends Specification {
329329
service.extractQuantity(nullOrBlank()) == null
330330
}
331331

332-
def 'extractQuantity() should return null for invalid quantity'() {
332+
@Unroll
333+
def 'extractQuantity() should return null for invalid quantity (#fragment)'(String fragment) {
333334
expect:
334-
service.extractQuantity('0 марок') == null
335+
service.extractQuantity(fragment) == null
336+
where:
337+
fragment | _
338+
'0 марок' | _
335339
}
336340

337341
@Unroll

0 commit comments

Comments
 (0)