*
* @return the initialized test configuration
*/
private static BaseHierarchicalConfiguration prepareNestedBeanDeclarations()
{
BaseHierarchicalConfiguration config =
new BaseHierarchicalConfiguration();
setupBeanDeclaration(config, KEY, TEST_PROPS, TEST_VALUES);
String keyCtorArg = KEY + ".config-constrarg";
setupBeanDeclaration(config, keyCtorArg, CTOR_COMPLEX_ATTRIBUTES,
CTOR_COMPLEX_VALUES);
config.addProperty(keyCtorArg + "[@config-class]", "TestClass");
config.addProperty(keyCtorArg + "(-1)[@config-value]", CTOR_ID);
config.addProperty(keyCtorArg + "[@config-type]", "long");
for (int i = 0; i < COMPLEX_PROPS.length; i++)
{
setupBeanDeclaration(config, KEY + '.' + COMPLEX_PROPS[i],
COMPLEX_ATTRIBUTES[i], COMPLEX_VALUES[i]);
config.addProperty(
KEY + '.' + COMPLEX_PROPS[i] + "[@config-class]",
COMPLEX_CLASSES[i]);
}
return config;
}