@Test public void twoParameters() { final List<String> setters = new ArrayList<>(); setters.add("$person.setHelloMsg(@{param2}, @{param3})"); assertFalse(SetStatementValidator.validate(setters)); }
private static boolean validate(final String statement) { return onlyOneTemplateKey(statement) && noFunctionCallsInStatement(statement); }
SetStatementValidator { private static boolean validate(final String statement) { return onlyOneTemplateKey(statement) && noFunctionCallsInStatement(statement); } }
SetStatementValidator { private static boolean validate(final String statement) { return onlyOneTemplateKey(statement) && noFunctionCallsInStatement(statement); } private  SetStatementValidator(); }
SetStatementValidator { private static boolean validate(final String statement) { return onlyOneTemplateKey(statement) && noFunctionCallsInStatement(statement); } private  SetStatementValidator(); static boolean validate(final List<String> setters); }
SetStatementValidator { private static boolean validate(final String statement) { return onlyOneTemplateKey(statement) && noFunctionCallsInStatement(statement); } private  SetStatementValidator(); static boolean validate(final List<String> setters);  }