String bundleVersion = "1.2.3";
String bundleDescription = "test bundle desc";
DeploymentProperties bundleMetadata = new DeploymentProperties(0, bundleName, bundleVersion,
bundleDescription);
ConfigurationDefinition configDef = new ConfigurationDefinition("foo", null);
int propDefaultValue1 = 998877;
String propDefaultValue4 = "this.is.the.default";
String propName1 = "prop1requiredWithDefault";
String propName2 = "prop2";
String propName3 = "prop3requiredWithNoDefault";
String propName4 = "prop4notRequiredWithDefault";
String propDesc1 = "prop1desc";
String propDesc2 = "prop2desc";
String propDesc3 = "prop3desc";
String propDesc4 = "prop4desc";
PropertyDefinitionSimple propdef1requiredWithDefault = new PropertyDefinitionSimple(propName1, propDesc1,
true, PropertySimpleType.INTEGER);
PropertyDefinitionSimple propdef2 = new PropertyDefinitionSimple(propName2, propDesc2, false,
PropertySimpleType.STRING);
PropertyDefinitionSimple propdef3requiredWithNoDefault = new PropertyDefinitionSimple(propName3, propDesc3,
true, PropertySimpleType.STRING);
PropertyDefinitionSimple propdef4notRequiredWithDefault = new PropertyDefinitionSimple(propName4,
propDesc4, false, PropertySimpleType.STRING);
propdef1requiredWithDefault.setDefaultValue(String.valueOf(propDefaultValue1));
propdef4notRequiredWithDefault.setDefaultValue(propDefaultValue4);
configDef.put(propdef1requiredWithDefault);
configDef.put(propdef2);
configDef.put(propdef3requiredWithNoDefault);
configDef.put(propdef4notRequiredWithDefault);
Map<String, File> bundleFiles = new HashMap<String, File>(3);
bundleFiles.put(bundleFile1, new File(tmpDir, bundleFile1));
bundleFiles.put(bundleFile2, new File(tmpDir, bundleFile2));
bundleFiles.put(bundleFile3, new File(tmpDir, bundleFile3));