/** * Creates a new instance of the given Configuration class as defined by this builder with the information * contained herein. * * @return The newly created instance. * @throws ConfigurationException When a configuration issue has been detected. This can be: * MissingPropertyException (a required Property is missing from the given properties collection), * NumberFormatException (a Property has a value that is invalid for it). * @throws NullPointerException If any of the arguments are null. * @throws IllegalArgumentException If namespace is an empty string.. */ public T build() throws ConfigurationException { return this.constructor.apply(new TypedProperties(this.properties, this.namespace)); }
TestContainerConfig() throws ConfigurationException { super(new TypedProperties(new Properties(), "ns")); } }
private <T> void testData(Properties props, ExtractorFunction<T> methodToTest, Predicate<String> valueValidator) throws Exception { for (int componentId = 0; componentId < TypedPropertiesTests.COMPONENT_COUNT; componentId++) { String componentCode = getComponentCode(componentId); TypedProperties config = new TypedProperties(props, componentCode); for (String fullyQualifiedPropertyName : props.stringPropertyNames()) { int propertyId = getPropertyId(fullyQualifiedPropertyName);