@Test public void constructor() throws Exception { Assert.assertNotNull("Please be sure to initialize data", getData()); int length = getData().length; Assert.assertNotEquals(0, length); assertStack(-1, -1, new int[length]); assertIsEmpty(true); assertIsFull(false); }
public int[] getData() { return data; }
SymmetricStack { public int[] getData() { return data; } }
SymmetricStack { public int[] getData() { return data; } SymmetricStack(); }
SymmetricStack { public int[] getData() { return data; } 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 int[] getData() { return data; } 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();  }