Skip to content

Commit b00dafe

Browse files
committed
Add another i18n mock
1 parent 4a05a72 commit b00dafe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/groovy/graphql/validation/rules/ProvidedNonNullArgumentsTest.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ class ProvidedNonNullArgumentsTest extends Specification {
2727
ValidationErrorCollector errorCollector = new ValidationErrorCollector()
2828
ProvidedNonNullArguments providedNonNullArguments = new ProvidedNonNullArguments(validationContext, errorCollector)
2929

30+
def setup() {
31+
validationContext.i18n(_, _) >> "test error message"
32+
}
33+
3034
def "not provided and not defaulted non null field argument"() {
3135
given:
3236
def fieldArg = GraphQLArgument.newArgument().name("arg")

0 commit comments

Comments
 (0)