}
@Test
public void testOverridenFields() throws Exception {
MappingFileReader fileReader = new MappingFileReader(XMLParserFactory.getInstance());
MappingFileData mappingFileData = fileReader.read("overridemapping.xml");
MappingsParser mappingsParser = MappingsParser.getInstance();
mappingsParser.processMappings(mappingFileData.getClassMaps(), mappingFileData.getConfiguration());
// validate class mappings
for (ClassMap classMap : mappingFileData.getClassMaps()) {
if (classMap.getSrcClassToMap().getName().equals("org.dozer.util.mapping.vo.FurtherTestObject")) {
assertTrue(classMap.isStopOnErrors());
}
if (classMap.getSrcClassToMap().getName().equals("org.dozer.util.mapping.vo.SuperSuperSuperClass")) {
assertTrue(classMap.isWildcard());