@Test public void register() { GroupedProperty groupedProperty = new GroupedProperty(); groupedProperty.addSingleProperty(singleProperty1); groupedProperty.addSingleProperty(singleProperty2); Properties properties = new Properties(); groupedProperty.register(properties); verify(singleProperty1, times(1)).register(properties); verify(singleProperty2, times(1)).register(properties); verifyNoMoreInteractions(singleProperty1, singleProperty2); }
@Override public void register(Properties properties) { if (CollectionUtils.isNotEmpty(singleProperties)) { for (SingleProperty<?> property : singleProperties) { property.register(properties); } } }
GroupedProperty extends AbstractProperty { @Override public void register(Properties properties) { if (CollectionUtils.isNotEmpty(singleProperties)) { for (SingleProperty<?> property : singleProperties) { property.register(properties); } } } }
GroupedProperty extends AbstractProperty { @Override public void register(Properties properties) { if (CollectionUtils.isNotEmpty(singleProperties)) { for (SingleProperty<?> property : singleProperties) { property.register(properties); } } } GroupedProperty();  GroupedProperty(String name, String description); }
GroupedProperty extends AbstractProperty { @Override public void register(Properties properties) { if (CollectionUtils.isNotEmpty(singleProperties)) { for (SingleProperty<?> property : singleProperties) { property.register(properties); } } } GroupedProperty();  GroupedProperty(String name, String description); @Override boolean isAdvanced(); @Override boolean isServerRestartRequired(); void validateForPropertiesUpdate(Collection<IPropertyUpdate<?>> propertyUpdates); @Override void register(Properties properties); @Override SingleProperty<?> forLogicalname(String propertyLogicalName); Set<SingleProperty<?>> getSingleProperties(); void addSingleProperty(SingleProperty<?> property); void addValidator(IGroupedProperyValidator validator); @Override int hashCode(); @Override boolean equals(Object obj); }
GroupedProperty extends AbstractProperty { @Override public void register(Properties properties) { if (CollectionUtils.isNotEmpty(singleProperties)) { for (SingleProperty<?> property : singleProperties) { property.register(properties); } } } GroupedProperty();  GroupedProperty(String name, String description); @Override boolean isAdvanced(); @Override boolean isServerRestartRequired(); void validateForPropertiesUpdate(Collection<IPropertyUpdate<?>> propertyUpdates); @Override void register(Properties properties); @Override SingleProperty<?> forLogicalname(String propertyLogicalName); Set<SingleProperty<?>> getSingleProperties(); void addSingleProperty(SingleProperty<?> property); void addValidator(IGroupedProperyValidator validator); @Override int hashCode(); @Override boolean equals(Object obj);  }