@Test
public void Main_doUpdateOperation_OneValidClass()
{
main.doAddCDElement(new ClassInfo(cIffy));
List<Class> cSet = main.inputCD().classes();
Class cl = null;
for (Class c : cSet) {
cl = c;
}
Set<ParameterInfo> params = SetFactory.createSet(ParameterInfo.class);
main.doAddCDElement(new OperationInfo(cPine, cl, params, Type.INTEGER));
Operation op = null;
for (Operation o : cl.operations()) {
op = o;
}
main.doUpdateCDElement(op, new OperationInfo(cSure, cl, params, Type.BOOLEAN));
assertTrue(cl.operations().size() == 1);
for (Operation o : cl.operations()) {
assertTrue(o.name().equals(cSure));
assertTrue(o.returnType().equals(Type.BOOLEAN));
}
}