Removing objectives from a model is not sensitive for removal of the active objective
Schmoho opened this issue · comments
Test to reproduce:
@Test
public void test() {
var m = new Model(3,2);
var fbcPlugin = (FBCModelPlugin) m.getPlugin(FBCConstants.shortLabel);
var o1 = fbcPlugin.createObjective("obj1");
fbcPlugin.setActiveObjective(o1);
fbcPlugin.getListOfObjectives().removeAll(fbcPlugin.getListOfObjectives());
assertTrue(fbcPlugin.isSetActiveObjective());
assertEquals("obj1", fbcPlugin.getActiveObjective());
assertEquals(0, fbcPlugin.getObjectiveCount());
}