Skip to content

Commit eadae97

Browse files
committed
refactor: improve a test by checking an error message
1 parent 11d3302 commit eadae97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/groovy/ru/mystamps/web/feature/series/SeriesServiceImplTest.groovy

+2-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,8 @@ class SeriesServiceImplTest extends Specification {
693693
when:
694694
service.findFullInfoById(null, null, bool())
695695
then:
696-
thrown(IllegalArgumentException)
696+
IllegalArgumentException ex = thrown()
697+
ex.message == 'Series id must be non null'
697698
}
698699

699700
def "findFullInfoById() should return null when series not found"() {

0 commit comments

Comments
 (0)