@Test public void should_return_a_valid_charset_at_rule_object_uppercase_test() { StandardAtRule atRule = StandardAtRuleFactory.getByName("CHARSET"); assertEquals(Charset.class, atRule.getClass()); assertEquals("charset", atRule.getName()); assertEquals(1, atRule.getLinks().size()); assertEquals("https: assertFalse(atRule.isObsolete()); assertFalse(atRule.isExperimental()); }
public static StandardAtRule getByName(String atRuleName) { StandardAtRule standardAtRule = ALL.get(atRuleName.toLowerCase(Locale.ENGLISH)); return standardAtRule != null ? standardAtRule : new UnknownAtRule(atRuleName); }
StandardAtRuleFactory { public static StandardAtRule getByName(String atRuleName) { StandardAtRule standardAtRule = ALL.get(atRuleName.toLowerCase(Locale.ENGLISH)); return standardAtRule != null ? standardAtRule : new UnknownAtRule(atRuleName); } }
StandardAtRuleFactory { public static StandardAtRule getByName(String atRuleName) { StandardAtRule standardAtRule = ALL.get(atRuleName.toLowerCase(Locale.ENGLISH)); return standardAtRule != null ? standardAtRule : new UnknownAtRule(atRuleName); } private  StandardAtRuleFactory(); }
StandardAtRuleFactory { public static StandardAtRule getByName(String atRuleName) { StandardAtRule standardAtRule = ALL.get(atRuleName.toLowerCase(Locale.ENGLISH)); return standardAtRule != null ? standardAtRule : new UnknownAtRule(atRuleName); } private  StandardAtRuleFactory(); static StandardAtRule getByName(String atRuleName); static List<StandardAtRule> getAll(); }
StandardAtRuleFactory { public static StandardAtRule getByName(String atRuleName) { StandardAtRule standardAtRule = ALL.get(atRuleName.toLowerCase(Locale.ENGLISH)); return standardAtRule != null ? standardAtRule : new UnknownAtRule(atRuleName); } private  StandardAtRuleFactory(); static StandardAtRule getByName(String atRuleName); static List<StandardAtRule> getAll();  }