@Test public void testValidationWhenVariableNameStartsWithReservedKeyword() { assertThat(FEELSyntaxLightValidator.isVariableNameValid("for variable")).isFalse(); assertThat(FEELSyntaxLightValidator.isVariableNameValid("for-name")).isFalse(); assertThat(FEELSyntaxLightValidator.isVariableNameValid("for.name")).isFalse(); assertThat(FEELSyntaxLightValidator.isVariableNameValid("for/name")).isFalse(); assertThat(FEELSyntaxLightValidator.isVariableNameValid("for'name")).isFalse(); assertThat(FEELSyntaxLightValidator.isVariableNameValid("for*name")).isFalse(); assertThat(FEELSyntaxLightValidator.isVariableNameValid("for+name")).isFalse(); }
public static boolean isVariableNameValid(final String variableName) { return notEmpty(variableName) && firstCharacterIsValid(variableName) && firstWordIsNotReservedKeyword(variableName) && doesNotContainForbiddenChars(variableName); }
FEELSyntaxLightValidator { public static boolean isVariableNameValid(final String variableName) { return notEmpty(variableName) && firstCharacterIsValid(variableName) && firstWordIsNotReservedKeyword(variableName) && doesNotContainForbiddenChars(variableName); } }
FEELSyntaxLightValidator { public static boolean isVariableNameValid(final String variableName) { return notEmpty(variableName) && firstCharacterIsValid(variableName) && firstWordIsNotReservedKeyword(variableName) && doesNotContainForbiddenChars(variableName); }  }
FEELSyntaxLightValidator { public static boolean isVariableNameValid(final String variableName) { return notEmpty(variableName) && firstCharacterIsValid(variableName) && firstWordIsNotReservedKeyword(variableName) && doesNotContainForbiddenChars(variableName); }  static boolean isVariableNameValid(final String variableName); }
FEELSyntaxLightValidator { public static boolean isVariableNameValid(final String variableName) { return notEmpty(variableName) && firstCharacterIsValid(variableName) && firstWordIsNotReservedKeyword(variableName) && doesNotContainForbiddenChars(variableName); }  static boolean isVariableNameValid(final String variableName);  }