new TestXmlConfigurationBuilder(doc.toString());
MarinerConfiguration config = configBuilder.buildConfiguration();
assertNotNull(config);
Iterator plugins = config.getMarkupPluginsListIterator();
if (plugins.hasNext()) {
MarkupPluginConfiguration mpc =
(MarkupPluginConfiguration) plugins.next();
assertEquals("Name should be the same as specified.",
values.getName(), mpc.getName());
assertEquals("Class name should be the same as specified.",
values.getClassName(), mpc.getClassName());
if (values.getScope() != null) {
assertEquals("Scope should be the same as specified.",
values.getScope(), mpc.getScope());
} else {
assertEquals("Scope should be the default - canvas.",
"canvas", mpc.getScope());
}
} else {
if (values != null) {
fail("Should have been a MarkupPluginConfiguration created.");
}