assertTrue(policies instanceof XmlPoliciesConfiguration);
XmlPoliciesConfiguration xmlPolicies =
(XmlPoliciesConfiguration) policies;
assertEquals("", "an xml dir", xmlPolicies.getDirectory());
AssetsConfiguration assets = project.getAssets();
assertNotNull(assets);
AssetConfiguration audioAssets = assets.getAudioAssets();
assertNotNull(audioAssets);
assertEquals("", "a/prefix/url", audioAssets.getPrefixUrl());
GeneratedResourcesConfiguration resources =
project.getGeneratedResources();
assertNotNull(resources);
assertEquals("", "default-resources", resources.getBaseDir());
}
// Test the single named project which was present.
{
RuntimeProjectConfiguration project = (RuntimeProjectConfiguration)
projects.getNamedProjects().values().iterator().next();
assertNotNull(project);
assertEquals("", "a/project", project.getName());
AbstractPoliciesConfiguration policies = project.getPolicies();
assertNotNull(policies);
assertTrue(policies instanceof JdbcPoliciesConfiguration);
JdbcPoliciesConfiguration jdbcPolicies =
(JdbcPoliciesConfiguration) policies;
assertEquals("", "a jdbc policy", jdbcPolicies.getName());
AssetsConfiguration assets = project.getAssets();
assertNotNull(assets);
AssetConfiguration dynvisAssets = assets.getDynamicVisualAssets();
assertNotNull(dynvisAssets);
assertEquals("", "another/prefix/url", dynvisAssets.getPrefixUrl());
GeneratedResourcesConfiguration resources =
project.getGeneratedResources();