@Test public void notifyExpressionAddedAboveTest(){ eList.addExp(e1); ExpressionsFormattingController.notifyExpressionAddedAbove(e2, e1, eList); Assert.assertEquals(eList.size(), 2); Assert.assertEquals(eList.getExp(0), e2); }
public static void notifyExpressionAddedAbove(Expression newExp, Expression selectedExp, ExpressionList expList){ if (newExp != null && selectedExp != null && expList != null) { int index = expList.indexOf(selectedExp); expList.addExp(index, newExp); } }
ExpressionsFormattingController { public static void notifyExpressionAddedAbove(Expression newExp, Expression selectedExp, ExpressionList expList){ if (newExp != null && selectedExp != null && expList != null) { int index = expList.indexOf(selectedExp); expList.addExp(index, newExp); } } }
ExpressionsFormattingController { public static void notifyExpressionAddedAbove(Expression newExp, Expression selectedExp, ExpressionList expList){ if (newExp != null && selectedExp != null && expList != null) { int index = expList.indexOf(selectedExp); expList.addExp(index, newExp); } } private  ExpressionsFormattingController(); }
ExpressionsFormattingController { public static void notifyExpressionAddedAbove(Expression newExp, Expression selectedExp, ExpressionList expList){ if (newExp != null && selectedExp != null && expList != null) { int index = expList.indexOf(selectedExp); expList.addExp(index, newExp); } } private  ExpressionsFormattingController(); static void notifyExpressionAdded(Expression newExp, ExpressionList expList); static void notifyExpressionDeleted(Expression selectedExp, ExpressionList expList); static void notifyExpressionAddedAbove(Expression newExp, Expression selectedExp, ExpressionList expList); static void notifyExpressionAddedBelow(Expression newExp, Expression selectedExp, ExpressionList expList); static void notifyMovedUpOne(Expression exp, ExpressionList expList); static void notifyMovedDownOne(Expression exp, ExpressionList expList); static void notifyMoveToTop(Expression exp, ExpressionList expList); static void notifyMoveToBottom(Expression exp, ExpressionList expList); static void notifyRemoveTelem(AbstractComponent telem, ArrayList<AbstractComponent> telemList); }
ExpressionsFormattingController { public static void notifyExpressionAddedAbove(Expression newExp, Expression selectedExp, ExpressionList expList){ if (newExp != null && selectedExp != null && expList != null) { int index = expList.indexOf(selectedExp); expList.addExp(index, newExp); } } private  ExpressionsFormattingController(); static void notifyExpressionAdded(Expression newExp, ExpressionList expList); static void notifyExpressionDeleted(Expression selectedExp, ExpressionList expList); static void notifyExpressionAddedAbove(Expression newExp, Expression selectedExp, ExpressionList expList); static void notifyExpressionAddedBelow(Expression newExp, Expression selectedExp, ExpressionList expList); static void notifyMovedUpOne(Expression exp, ExpressionList expList); static void notifyMovedDownOne(Expression exp, ExpressionList expList); static void notifyMoveToTop(Expression exp, ExpressionList expList); static void notifyMoveToBottom(Expression exp, ExpressionList expList); static void notifyRemoveTelem(AbstractComponent telem, ArrayList<AbstractComponent> telemList);  }