Skip to content

Commit

Permalink
Better tests validations.
Browse files Browse the repository at this point in the history
  • Loading branch information
filipelautert committed Jan 20, 2023
1 parent 2adaacb commit 9d0786b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Optional Args:
]

expectedException = CommandValidationException.class
expectedExceptionMessage = 'Invalid argument \'changelogFile\': missing required argument'
}

run "Run without changesetIdentifier should throw an exception", {
Expand All @@ -58,14 +59,17 @@ Optional Args:
]

expectedException = CommandValidationException.class
expectedExceptionMessage = "Invalid argument \'changesetIdentifier\': missing required argument"
}

run "Run without URL should throw an exception", {
arguments = [
url: "",
changelogFile : "changelogs/h2/complete/rollback.tag.changelog.xml"
changelogFile : "changelogs/h2/complete/rollback.tag.changelog.xml",
changesetIdentifier: "changelogs/h2/complete/rollback.tag.changelog.xml::1::nvoxland",
]

expectedException = CommandValidationException.class
expectedExceptionMessage = "Invalid argument \'url\': missing required argument"
}
}

0 comments on commit 9d0786b

Please sign in to comment.