Skip to content

Commit

Permalink
Verify exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Aug 21, 2023
1 parent 568b88c commit 5bf109b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ class FooSpec extends Specification {
currentFeature
assert false: 'currentFeature should not be set'
} catch (IllegalStateException ise) {
assert ise.message == 'Cannot request current feature in @Shared context'
}
}
}
Expand All @@ -265,6 +266,7 @@ class FooSpec extends Specification {
currentFeature
assert false: 'currentFeature should not be set'
} catch (IllegalStateException ise) {
assert ise.message == 'Cannot request current feature in @Shared context'
}
}
}
Expand Down

0 comments on commit 5bf109b

Please sign in to comment.