Simplify creation of RequestInput in tests

Introduce a TestRequestInput subclass to make the creation of
RequestInput in tests convenient.

See gh-310
This commit is contained in:
rstoyanchev
2022-03-01 14:13:51 +00:00
parent b49c63f376
commit 087202d9cb
22 changed files with 97 additions and 62 deletions

View File

@@ -70,7 +70,7 @@ class GraphQlTesterRequestSpecSupport {
}
protected RequestInput createRequestInput() {
return new RequestInput(this.query, this.operationName, this.variables, this.locale, idGenerator.generateId().toString());
return new RequestInput(this.query, this.operationName, this.variables, idGenerator.generateId().toString(), this.locale);
}
}