@Test public void should_return_a_valid_first_line_pseudo_identifier_object_uppercase_test() { StandardPseudoIdentifier identifier = StandardPseudoIdentifierFactory.getByName("FIRST-LINE"); assertEquals(FirstLine.class, identifier.getClass()); assertEquals("first-line", identifier.getName()); assertEquals(1, identifier.getLinks().size()); assertEquals("https: assertFalse(identifier.isExperimental()); assertFalse(identifier.isObsolete()); }
public static StandardPseudoIdentifier getByName(String identifier) { StandardPseudoIdentifier standardPseudoIdentifier = ALL.get(identifier.toLowerCase(Locale.ENGLISH)); return standardPseudoIdentifier != null ? standardPseudoIdentifier : new UnknownPseudoIdentifier(identifier); }
StandardPseudoIdentifierFactory { public static StandardPseudoIdentifier getByName(String identifier) { StandardPseudoIdentifier standardPseudoIdentifier = ALL.get(identifier.toLowerCase(Locale.ENGLISH)); return standardPseudoIdentifier != null ? standardPseudoIdentifier : new UnknownPseudoIdentifier(identifier); } }
StandardPseudoIdentifierFactory { public static StandardPseudoIdentifier getByName(String identifier) { StandardPseudoIdentifier standardPseudoIdentifier = ALL.get(identifier.toLowerCase(Locale.ENGLISH)); return standardPseudoIdentifier != null ? standardPseudoIdentifier : new UnknownPseudoIdentifier(identifier); } private  StandardPseudoIdentifierFactory(); }
StandardPseudoIdentifierFactory { public static StandardPseudoIdentifier getByName(String identifier) { StandardPseudoIdentifier standardPseudoIdentifier = ALL.get(identifier.toLowerCase(Locale.ENGLISH)); return standardPseudoIdentifier != null ? standardPseudoIdentifier : new UnknownPseudoIdentifier(identifier); } private  StandardPseudoIdentifierFactory(); static StandardPseudoIdentifier getByName(String identifier); static List<StandardPseudoIdentifier> getAll(); }
StandardPseudoIdentifierFactory { public static StandardPseudoIdentifier getByName(String identifier) { StandardPseudoIdentifier standardPseudoIdentifier = ALL.get(identifier.toLowerCase(Locale.ENGLISH)); return standardPseudoIdentifier != null ? standardPseudoIdentifier : new UnknownPseudoIdentifier(identifier); } private  StandardPseudoIdentifierFactory(); static StandardPseudoIdentifier getByName(String identifier); static List<StandardPseudoIdentifier> getAll();  }