Fix the validators's test have two variant of the order for methods.
This commit is contained in:
+2
-2
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user