@Test public void reallocate_givenInitialState_thenLengthIs2() throws Exception { reallocate(new EmptyInterval(), 1); assertLength(2); }
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);  }