OntoSpreadRun runOntoSpread = new OntoSpreadRunImpl(
DAOUtils.createOntologyDAO(),
OntoSpreadTestUtils.createStopStrategy(min,max, 1.0),
OntoSpreadTestUtils.createSelectStrategy(),
new OntoSpreadRelationWeightImpl());
OntoSpreadState ontoSpreadState = new OntoSpreadState();
ontoSpreadState.setInitialConcepts(OntoSpreadTestUtils.createScoredConcepts(conceptUris,1.0));
setupInitialConcepts(ontoSpreadState, 1.0);
List<UriDepthPair> sortedList = new LinkedList<UriDepthPair>();
for(int i = 0; i<conceptUris.length;i++){
sortedList.add(new UriDepthPair(conceptUris[i],1));
}
ontoSpreadState.setCurrentScore(2.0);
ontoSpreadState.setSortedList(sortedList);
while(runOntoSpread.hasIteration(ontoSpreadState)){
runOntoSpread.applyIteration(ontoSpreadState);
}
//FIXME
assertEquals(1, ontoSpreadState.getSpreadedConcepts().size());
}