@Test public void should_return_a_valid_has_pseudo_function_object_mix_uppercase_lowercase_test() { StandardPseudoFunction function = StandardPseudoFunctionFactory.getByName("HaS"); assertEquals(Has.class, function.getClass()); assertEquals("has", function.getName()); assertEquals(1, function.getLinks().size()); assertEquals("https: assertTrue(function.isExperimental()); assertFalse(function.isObsolete()); }
public static StandardPseudoFunction getByName(String functionName) { StandardPseudoFunction standardPseudoFunction = ALL.get(functionName.toLowerCase(Locale.ENGLISH)); return standardPseudoFunction != null ? standardPseudoFunction : new UnknownPseudoFunction(functionName); }
StandardPseudoFunctionFactory { public static StandardPseudoFunction getByName(String functionName) { StandardPseudoFunction standardPseudoFunction = ALL.get(functionName.toLowerCase(Locale.ENGLISH)); return standardPseudoFunction != null ? standardPseudoFunction : new UnknownPseudoFunction(functionName); } }
StandardPseudoFunctionFactory { public static StandardPseudoFunction getByName(String functionName) { StandardPseudoFunction standardPseudoFunction = ALL.get(functionName.toLowerCase(Locale.ENGLISH)); return standardPseudoFunction != null ? standardPseudoFunction : new UnknownPseudoFunction(functionName); } private  StandardPseudoFunctionFactory(); }
StandardPseudoFunctionFactory { public static StandardPseudoFunction getByName(String functionName) { StandardPseudoFunction standardPseudoFunction = ALL.get(functionName.toLowerCase(Locale.ENGLISH)); return standardPseudoFunction != null ? standardPseudoFunction : new UnknownPseudoFunction(functionName); } private  StandardPseudoFunctionFactory(); static StandardPseudoFunction getByName(String functionName); static List<StandardPseudoFunction> getAll(); }
StandardPseudoFunctionFactory { public static StandardPseudoFunction getByName(String functionName) { StandardPseudoFunction standardPseudoFunction = ALL.get(functionName.toLowerCase(Locale.ENGLISH)); return standardPseudoFunction != null ? standardPseudoFunction : new UnknownPseudoFunction(functionName); } private  StandardPseudoFunctionFactory(); static StandardPseudoFunction getByName(String functionName); static List<StandardPseudoFunction> getAll();  }