@Test public void should_return_a_valid_column_count_object() { StandardProperty property = StandardPropertyFactory.getByName("column-count"); assertEquals(ColumnCount.class, property.getClass()); assertEquals("column-count", property.getName()); assertEquals(2, property.getLinks().size()); assertEquals("http: assertEquals("https: assertEquals(2, property.getValidators().size()); assertEquals(0, property.getVendors().size()); assertFalse(property.isObsolete()); }
public static StandardProperty getByName(String propertyName) { StandardProperty standardProperty = ALL.get(propertyName.toLowerCase(Locale.ENGLISH)); return standardProperty != null ? standardProperty : new UnknownProperty(propertyName); }
StandardPropertyFactory { public static StandardProperty getByName(String propertyName) { StandardProperty standardProperty = ALL.get(propertyName.toLowerCase(Locale.ENGLISH)); return standardProperty != null ? standardProperty : new UnknownProperty(propertyName); } }
StandardPropertyFactory { public static StandardProperty getByName(String propertyName) { StandardProperty standardProperty = ALL.get(propertyName.toLowerCase(Locale.ENGLISH)); return standardProperty != null ? standardProperty : new UnknownProperty(propertyName); } private  StandardPropertyFactory(); }
StandardPropertyFactory { public static StandardProperty getByName(String propertyName) { StandardProperty standardProperty = ALL.get(propertyName.toLowerCase(Locale.ENGLISH)); return standardProperty != null ? standardProperty : new UnknownProperty(propertyName); } private  StandardPropertyFactory(); static StandardProperty getByName(String propertyName); static List<StandardProperty> getAll(); }
StandardPropertyFactory { public static StandardProperty getByName(String propertyName) { StandardProperty standardProperty = ALL.get(propertyName.toLowerCase(Locale.ENGLISH)); return standardProperty != null ? standardProperty : new UnknownProperty(propertyName); } private  StandardPropertyFactory(); static StandardProperty getByName(String propertyName); static List<StandardProperty> getAll();  }