@Test public void prepend_givenFirst0_givenLast4_prependAt9() throws Exception { buildStack(0, 4, 2, 9, 0, 3, 5, 0, 0, 0, 0, 0); int[] expected = {2, 9, 0, 3, 5, 0, 0, 0, 0, 7}; prepend(7); assertIncreaseCalls(0); assertStack(9, 4, expected); }
public void prepend(int x) { }
SymmetricStack { public void prepend(int x) { } }
SymmetricStack { public void prepend(int x) { } SymmetricStack(); }
SymmetricStack { public void prepend(int x) { } SymmetricStack(); int getFirst(); void setFirst(int first); int getLast(); void setLast(int last); int[] getData(); void setData(int[] data); int getNumberOfElements(); void increase(); void decrease(); boolean isEmpty(); boolean isFull(); void prepend(int x); void append(int x); void removeFirst(); void removeLast(); @Override String toString(); }
SymmetricStack { public void prepend(int x) { } SymmetricStack(); int getFirst(); void setFirst(int first); int getLast(); void setLast(int last); int[] getData(); void setData(int[] data); int getNumberOfElements(); void increase(); void decrease(); boolean isEmpty(); boolean isFull(); void prepend(int x); void append(int x); void removeFirst(); void removeLast(); @Override String toString();  }