@Test(expected = Exception.class) @Ignore public void reallocate_givenToBig_givenUsageIndexToHigh_throwsException() throws Exception { int[] elements = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; setElements(elements); reallocate(new NonEmptyInterval(6, 8), 3); assertElements(elements); }
private void reallocate(Interval usage, int lengthNew) { }
DynamicArray { private void reallocate(Interval usage, int lengthNew) { } }
DynamicArray { private void reallocate(Interval usage, int lengthNew) { } DynamicArray(int growthFactor, int maxOverhead); }
DynamicArray { private void reallocate(Interval usage, int lengthNew) { } DynamicArray(int growthFactor, int maxOverhead); int getInnerLength(); Interval reportUsage(Interval usage, int minSize); int get(int index); void set(int index, int value); }
DynamicArray { private void reallocate(Interval usage, int lengthNew) { } DynamicArray(int growthFactor, int maxOverhead); int getInnerLength(); Interval reportUsage(Interval usage, int minSize); int get(int index); void set(int index, int value);  }