@Test public void testCheckScriptFixtureValue() { assertFalse(ScriptFragment.isScript(new FixtureValue("test"))); assertFalse(ScriptFragment.isScript(new FixtureValue(1))); assertFalse(ScriptFragment.isScript(new FixtureValue("{test}"))); assertFalse(ScriptFragment.isScript(new FixtureValue("${test"))); assertTrue(ScriptFragment.isScript(new FixtureValue("${test}"))); assertTrue(ScriptFragment.isScript(new FixtureValue("${test.example}"))); assertTrue(ScriptFragment.isScript(new FixtureValue("${test.example.abc()}"))); }
public static boolean isScript(FixtureValue fixtureValue) { return (fixtureValue.getValue() instanceof String) && FIXTURE_VALUE_SCRIPT_PATTERN.matcher((CharSequence) fixtureValue.getValue()).find(); }
ScriptFragment { public static boolean isScript(FixtureValue fixtureValue) { return (fixtureValue.getValue() instanceof String) && FIXTURE_VALUE_SCRIPT_PATTERN.matcher((CharSequence) fixtureValue.getValue()).find(); } }
ScriptFragment { public static boolean isScript(FixtureValue fixtureValue) { return (fixtureValue.getValue() instanceof String) && FIXTURE_VALUE_SCRIPT_PATTERN.matcher((CharSequence) fixtureValue.getValue()).find(); } ScriptFragment(String methodName);  ScriptFragment(String methodName, String ... arguments); }
ScriptFragment { public static boolean isScript(FixtureValue fixtureValue) { return (fixtureValue.getValue() instanceof String) && FIXTURE_VALUE_SCRIPT_PATTERN.matcher((CharSequence) fixtureValue.getValue()).find(); } ScriptFragment(String methodName);  ScriptFragment(String methodName, String ... arguments); static ScriptFragment of(FixtureValue fixtureValue); static ScriptFragment of(String script); static boolean isScript(FixtureValue fixtureValue); String getMethodName(); List<String> getArguments(); boolean hasArguments(); ScriptFragment getNext(); void appendToTail(ScriptFragment scriptFragment); String toScriptString(); }
ScriptFragment { public static boolean isScript(FixtureValue fixtureValue) { return (fixtureValue.getValue() instanceof String) && FIXTURE_VALUE_SCRIPT_PATTERN.matcher((CharSequence) fixtureValue.getValue()).find(); } ScriptFragment(String methodName);  ScriptFragment(String methodName, String ... arguments); static ScriptFragment of(FixtureValue fixtureValue); static ScriptFragment of(String script); static boolean isScript(FixtureValue fixtureValue); String getMethodName(); List<String> getArguments(); boolean hasArguments(); ScriptFragment getNext(); void appendToTail(ScriptFragment scriptFragment); String toScriptString();  }