@Test public void should_return_a_valid_repeating_linear_gradient_function_object() { StandardFunction function = StandardFunctionFactory.getByName("repeating-linear-gradient"); assertEquals(RepeatingLinearGradient.class, function.getClass()); assertEquals("repeating-linear-gradient", function.getName()); assertEquals(1, function.getLinks().size()); assertFalse(function.isExperimental()); assertFalse(function.isObsolete()); }
public static StandardFunction getByName(String functionName) { StandardFunction standardFunction = ALL.get(functionName.toLowerCase(Locale.ENGLISH)); return standardFunction != null ? standardFunction : new UnknownFunction(functionName); }
StandardFunctionFactory { public static StandardFunction getByName(String functionName) { StandardFunction standardFunction = ALL.get(functionName.toLowerCase(Locale.ENGLISH)); return standardFunction != null ? standardFunction : new UnknownFunction(functionName); } }
StandardFunctionFactory { public static StandardFunction getByName(String functionName) { StandardFunction standardFunction = ALL.get(functionName.toLowerCase(Locale.ENGLISH)); return standardFunction != null ? standardFunction : new UnknownFunction(functionName); } private  StandardFunctionFactory(); }
StandardFunctionFactory { public static StandardFunction getByName(String functionName) { StandardFunction standardFunction = ALL.get(functionName.toLowerCase(Locale.ENGLISH)); return standardFunction != null ? standardFunction : new UnknownFunction(functionName); } private  StandardFunctionFactory(); static StandardFunction getByName(String functionName); static List<StandardFunction> getAll(); }
StandardFunctionFactory { public static StandardFunction getByName(String functionName) { StandardFunction standardFunction = ALL.get(functionName.toLowerCase(Locale.ENGLISH)); return standardFunction != null ? standardFunction : new UnknownFunction(functionName); } private  StandardFunctionFactory(); static StandardFunction getByName(String functionName); static List<StandardFunction> getAll();  }