Assert.assertEquals(7, count);
}
private int getNameMapperAndSubNameMapperCount()
{
MockMetaDataTransformerFactory nameMapperAwareFactory =
(ExtValContext.getContext()
.getFactoryFinder()
.getFactory(FactoryNames.META_DATA_TRANSFORMER_FACTORY, MockMetaDataTransformerFactory.class));
List<NameMapper<ValidationStrategy>> nameMapperList = nameMapperAwareFactory.getRegisteredNameMapperList();
int count = 0;
for(NameMapper<ValidationStrategy> nameMapper : nameMapperList)
{
if(!(nameMapper instanceof SubMapperAwareNameMapper))
{
count++;
}
}
List<NameMapper<ValidationStrategy>> subNamMappers = nameMapperAwareFactory.getSubNameMapperList();
count += subNamMappers.size();
return count;
}