File tree 2 files changed +10
-10
lines changed
src/test/groovy/ru/mystamps/web/service
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -98,11 +98,11 @@ class ImageServiceTest extends Specification {
98
98
return true
99
99
}) >> new Image ()
100
100
where :
101
- contentType | expectedType
102
- ' image/jpeg' | Image.Type . JPEG
103
- ' image/jpeg; charset=UTF-8' | Image.Type . JPEG
104
- ' image/png' | Image.Type . PNG
105
- ' image/png; charset=UTF8' | Image.Type . PNG
101
+ contentType || expectedType
102
+ ' image/jpeg' || Image.Type . JPEG
103
+ ' image/jpeg; charset=UTF-8' || Image.Type . JPEG
104
+ ' image/png' || Image.Type . PNG
105
+ ' image/png; charset=UTF8' || Image.Type . PNG
106
106
}
107
107
108
108
def " save() should throw exception when image dao returned null" () {
Original file line number Diff line number Diff line change @@ -506,11 +506,11 @@ class SeriesServiceTest extends Specification {
506
506
return true
507
507
})
508
508
where :
509
- canAddComment | comment | expectedComment
510
- false | null | null
511
- false | " test" | null
512
- true | null | null
513
- true | " Some text" | " Some text"
509
+ canAddComment | comment || expectedComment
510
+ false | null || null
511
+ false | " test" || null
512
+ true | null || null
513
+ true | " Some text" || " Some text"
514
514
}
515
515
516
516
def " add() should assign created at to current date" () {
You can’t perform that action at this time.
0 commit comments