}
public void testLocationMapperFromModel()
{
Model model = FileManager.get().loadModel(testingDir+"/location-mapping-test.n3") ;
LocationMapper loc = new LocationMapper(model) ;
// Light test that the two location mappers are "the same"
LocationMapper locMap = new LocationMapper(mapping) ;
for ( Iterator<String> iter = loc.listAltEntries() ; iter.hasNext() ; )
{
String e = iter.next() ;
String v1 = locMap.getAltEntry(e) ;
String v2 = loc.getAltEntry(e) ;
assertEquals("Different entries", v1, v2) ;
}
for ( Iterator<String> iter = loc.listAltPrefixes() ; iter.hasNext() ; )
{
String e = iter.next() ;
String v1 = locMap.getAltPrefix(e) ;
String v2 = loc.getAltPrefix(e) ;
assertEquals("Different entries", v1, v2) ;
}
}