InputStream source = configFile.openStream();
Map<String, Definition> definitions = reader.read(source);
assertNotNull("Definitions not returned.", definitions);
Definition def = definitions.get("doc.cascaded.test");
assertNotNull("Couldn't find doc.role.test tile.", def);
Attribute attribute = def.getLocalAttribute("title");
assertNotNull("Couldn't Find title local attribute.", attribute);
attribute = def.getCascadedAttribute("title2");
assertNotNull("Couldn't Find title2 cascaded attribute.", attribute);
attribute = def.getLocalAttribute("items1");
assertNotNull("Couldn't Find items1 local attribute.", attribute);
attribute = def.getCascadedAttribute("items2");
assertNotNull("Couldn't Find items2 cascaded attribute.", attribute);
} catch (Exception e) {
fail("Exception reading configuration." + e);
}
}