@Test public void notifyMoveToTopTest(){ eList.addExp(e1); eList.addExp(e2); eList.addExp(e3); ExpressionsFormattingController.notifyMoveToTop(e3, eList); Assert.assertEquals(eList.getExp(0), e3); }
public static void notifyMoveToTop(Expression exp, ExpressionList expList){ if (exp != null && expList != null){ expList.move(0, exp); } }
ExpressionsFormattingController { public static void notifyMoveToTop(Expression exp, ExpressionList expList){ if (exp != null && expList != null){ expList.move(0, exp); } } }
ExpressionsFormattingController { public static void notifyMoveToTop(Expression exp, ExpressionList expList){ if (exp != null && expList != null){ expList.move(0, exp); } } private  ExpressionsFormattingController(); }
ExpressionsFormattingController { public static void notifyMoveToTop(Expression exp, ExpressionList expList){ if (exp != null && expList != null){ expList.move(0, exp); } } 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 notifyMoveToTop(Expression exp, ExpressionList expList){ if (exp != null && expList != null){ expList.move(0, exp); } } 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);  }