Fix the validators's test have two variant of the order for methods.
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

main 0.13.3
KKlochko 2 years ago
parent a6831ed77e
commit d5dbf2942d

@ -49,11 +49,11 @@ class IntegratedValidatorsSpec extends Specification {
def message = validator.getMessage() def message = validator.getMessage()
then: "The message must be expected" then: "The message must be expected"
message == expectedMessage message ==~ expectedMessage
where: "Possible variants of tests" where: "Possible variants of tests"
validator | testClass || expectedMessage validator | testClass || expectedMessage
new HasMethodsWithArgumentsValidator() | HasMethodArgumentsTest.class || "ERROR!!! Methods must have no arguments!!! Check methods: given, setupArguments!!!" new HasMethodsWithArgumentsValidator() | HasMethodArgumentsTest.class || "ERROR!!! Methods must have no arguments!!! Check methods: (given|setupArguments), (given|setupArguments)!!!"
new HasMethodsWithArgumentsValidator() | SimpleGivenWhenThenTest.class || "ok" new HasMethodsWithArgumentsValidator() | SimpleGivenWhenThenTest.class || "ok"
new HasNonVoidMethodsValidator() | HasNonVoidMethodTest.class || "ERROR!!! Methods must have the void type!!! Check methods: then!!!" new HasNonVoidMethodsValidator() | HasNonVoidMethodTest.class || "ERROR!!! Methods must have the void type!!! Check methods: then!!!"
new HasMethodsWithArgumentsValidator() | SimpleGivenWhenThenTest.class || "ok" new HasMethodsWithArgumentsValidator() | SimpleGivenWhenThenTest.class || "ok"

Loading…
Cancel
Save