@Test public void checkExpressionSyntax_StringWithExpressionValuePrefix() { assertEquals(ConstantHolder.EXPRESSION_VALUE_PREFIX + "Test", ExpressionUtils.ensureExpressionSyntax(ConstantHolder.EXPRESSION_VALUE_PREFIX + "Test")); }
public static String ensureExpressionSyntax(String expressionValue) { if (expressionValue != null && !expressionValue.startsWith(EXPRESSION_VALUE_PREFIX)) { if (expressionValue.startsWith(MVEL_ESCAPE_SYMBOL)) { return expressionValue.replaceFirst(MVEL_ESCAPE_SYMBOL, EXPRESSION_VALUE_PREFIX); } if (expressionValue.startsWith(" ")) { return expressionValue.replaceFirst(" ", EXPRESSION_VALUE_PREFIX); } return EXPRESSION_VALUE_PREFIX + expressionValue; } return expressionValue; }
ExpressionUtils { public static String ensureExpressionSyntax(String expressionValue) { if (expressionValue != null && !expressionValue.startsWith(EXPRESSION_VALUE_PREFIX)) { if (expressionValue.startsWith(MVEL_ESCAPE_SYMBOL)) { return expressionValue.replaceFirst(MVEL_ESCAPE_SYMBOL, EXPRESSION_VALUE_PREFIX); } if (expressionValue.startsWith(" ")) { return expressionValue.replaceFirst(" ", EXPRESSION_VALUE_PREFIX); } return EXPRESSION_VALUE_PREFIX + expressionValue; } return expressionValue; } }
ExpressionUtils { public static String ensureExpressionSyntax(String expressionValue) { if (expressionValue != null && !expressionValue.startsWith(EXPRESSION_VALUE_PREFIX)) { if (expressionValue.startsWith(MVEL_ESCAPE_SYMBOL)) { return expressionValue.replaceFirst(MVEL_ESCAPE_SYMBOL, EXPRESSION_VALUE_PREFIX); } if (expressionValue.startsWith(" ")) { return expressionValue.replaceFirst(" ", EXPRESSION_VALUE_PREFIX); } return EXPRESSION_VALUE_PREFIX + expressionValue; } return expressionValue; } private  ExpressionUtils(); }
ExpressionUtils { public static String ensureExpressionSyntax(String expressionValue) { if (expressionValue != null && !expressionValue.startsWith(EXPRESSION_VALUE_PREFIX)) { if (expressionValue.startsWith(MVEL_ESCAPE_SYMBOL)) { return expressionValue.replaceFirst(MVEL_ESCAPE_SYMBOL, EXPRESSION_VALUE_PREFIX); } if (expressionValue.startsWith(" ")) { return expressionValue.replaceFirst(" ", EXPRESSION_VALUE_PREFIX); } return EXPRESSION_VALUE_PREFIX + expressionValue; } return expressionValue; } private  ExpressionUtils(); static String ensureExpressionSyntax(String expressionValue); }
ExpressionUtils { public static String ensureExpressionSyntax(String expressionValue) { if (expressionValue != null && !expressionValue.startsWith(EXPRESSION_VALUE_PREFIX)) { if (expressionValue.startsWith(MVEL_ESCAPE_SYMBOL)) { return expressionValue.replaceFirst(MVEL_ESCAPE_SYMBOL, EXPRESSION_VALUE_PREFIX); } if (expressionValue.startsWith(" ")) { return expressionValue.replaceFirst(" ", EXPRESSION_VALUE_PREFIX); } return EXPRESSION_VALUE_PREFIX + expressionValue; } return expressionValue; } private  ExpressionUtils(); static String ensureExpressionSyntax(String expressionValue);  }