@Test public void test_configuration() { OpenCurlyBracesAtEOLCheck check = new OpenCurlyBracesAtEOLCheck(); String defaultConfigAsString = new Gson().toJson(check.configurations()); assertThat(defaultConfigAsString).isEqualTo("[\"1tbs\",{\"allowSingleLine\":true}]"); check.braceStyle = "stroustrup"; String stroustrupConfigAsString = new Gson().toJson(check.configurations()); assertThat(stroustrupConfigAsString).isEqualTo("[\"stroustrup\",{\"allowSingleLine\":true}]"); }
@Override public List<Object> configurations() { return Arrays.asList(braceStyle, new Config()); }
OpenCurlyBracesAtEOLCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Arrays.asList(braceStyle, new Config()); } }
OpenCurlyBracesAtEOLCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Arrays.asList(braceStyle, new Config()); }  }
OpenCurlyBracesAtEOLCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Arrays.asList(braceStyle, new Config()); }  @Override List<Object> configurations(); @Override String eslintKey(); }
OpenCurlyBracesAtEOLCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Arrays.asList(braceStyle, new Config()); }  @Override List<Object> configurations(); @Override String eslintKey(); @RuleProperty(
    key = "braceStyle",
    description = "enforced brace-style: 1tbs, stroustrup or allman.",
    defaultValue = DEFAULT_BRACE_STYLE)
  public String braceStyle; }