Forked from mario-rezende-ifood/exception-verification.groovy
Created
December 11, 2019 16:10
-
-
Save mariorez/3d154cc4be62df768a959f775307f450 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
given: | |
def stack = new Stack() | |
when: | |
stack.pop() | |
then: | |
thrown(EmptyStackException) | |
stack.empty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment