@Test void testHasScriptVariableTrue() { Script script = when(mock(Script.class).getContent()).thenReturn("lorum ${x}").getMock(); assertTrue(ScriptUtils.hasScriptVariable(script, "x")); }
public static boolean hasScriptVariable(Script script, String variable) { return getScriptVariables(script).contains(variable); }
ScriptUtils { public static boolean hasScriptVariable(Script script, String variable) { return getScriptVariables(script).contains(variable); } }
ScriptUtils { public static boolean hasScriptVariable(Script script, String variable) { return getScriptVariables(script).contains(variable); } private  ScriptUtils(); }
ScriptUtils { public static boolean hasScriptVariable(Script script, String variable) { return getScriptVariables(script).contains(variable); } private  ScriptUtils(); static String generateScript(Script script, Map<String, Object> parameterValues); static boolean hasScriptVariable(Script script, String variable); static Set<String> getScriptVariables(Script script); }
ScriptUtils { public static boolean hasScriptVariable(Script script, String variable) { return getScriptVariables(script).contains(variable); } private  ScriptUtils(); static String generateScript(Script script, Map<String, Object> parameterValues); static boolean hasScriptVariable(Script script, String variable); static Set<String> getScriptVariables(Script script);  }