Compare commits

...
1 Commits
Author SHA1 Message Date
KKlochko d5dbf2942d Fix the validators's test have two variant of the order for methods.
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-10-19 09:35:45 +03:00
@@ -49,11 +49,11 @@ class IntegratedValidatorsSpec extends Specification {
def message = validator.getMessage()
then: "The message must be expected"
message == expectedMessage
message ==~ expectedMessage
where: "Possible variants of tests"
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 HasNonVoidMethodsValidator() | HasNonVoidMethodTest.class || "ERROR!!! Methods must have the void type!!! Check methods: then!!!"
new HasMethodsWithArgumentsValidator() | SimpleGivenWhenThenTest.class || "ok"