public void setUp() throws Exception
{
// Test does not directly use the AppRegistry but the configured broker
// is required for the correct ConfigurationPlugin processing
super.setUp();
XMLConfiguration xmlConfig = new XMLConfiguration();
xmlConfig.addProperty("base.element[@property]", "property");
xmlConfig.addProperty("base.element.name", "name");
// We make these strings as that is how they will be read from the file.
xmlConfig.addProperty("base.element.positiveLong", String.valueOf(POSITIVE_LONG));
xmlConfig.addProperty("base.element.negativeLong", String.valueOf(NEGATIVE_LONG));
xmlConfig.addProperty("base.element.boolean", String.valueOf(true));
xmlConfig.addProperty("base.element.double", String.valueOf(DOUBLE));
for (int i = 0; i < LIST_SIZE; i++)
{
xmlConfig.addProperty("base.element.list", i);
}
//Use a composite configuration as this is what our broker code uses.
CompositeConfiguration composite = new CompositeConfiguration();
composite.addConfiguration(xmlConfig);