Skip to content

Commit

Permalink
Fix error when running checkstyle plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <michael@xlate.io>
  • Loading branch information
MikeEdgar committed Dec 20, 2019
1 parent 3cae33a commit d214d04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public abstract class AppTestBase extends Arquillian {
private static String username;
private static String password;

protected static final Filter yamlFilter = new YamlToJsonFilter();
protected static final Filter YAML_FILTER = new YamlToJsonFilter();

@BeforeClass
public static void configureRestAssured() throws MalformedURLException {
Expand Down Expand Up @@ -84,7 +84,7 @@ public ValidatableResponse callEndpoint(String type) {
}
else {
// It seems there is no standard for YAML
vr = given().filter(yamlFilter).accept(ContentType.ANY).when().get("/openapi").then().statusCode(200);
vr = given().filter(YAML_FILTER).accept(ContentType.ANY).when().get("/openapi").then().statusCode(200);
}
return vr;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void testOAuthFlow(String type) {
@Test
public void testDefaultResponseType() {
given()
.filter(AppTestBase.yamlFilter)
.filter(AppTestBase.YAML_FILTER)
.when().get("/openapi")
.then()
.assertThat()
Expand Down

0 comments on commit d214d04

Please sign in to comment.