import junit.framework.TestCase;
public class OntoSpreadRestrictionMaxConceptsTest extends TestCase {
public void testEval() {
OntoSpreadRestriction maxRestriction = new OntoSpreadRestrictionMaxConcepts(10);
OntoSpreadState ontoSpreadState = new OntoSpreadState();
Set<String> spreadedConcepts= new HashSet<String>();
ontoSpreadState.setSpreadedConcepts(spreadedConcepts);
assertTrue(maxRestriction.eval(ontoSpreadState));
for(int i = 0; i<=10;i++){
ontoSpreadState.getSpreadedConcepts().add(String.valueOf(i));
}
assertFalse(maxRestriction.eval(ontoSpreadState));
}