@Test public void reportUsage_givenToSmall_thenIncreasesElements() throws Exception { int[] elements = {1, 2, 3, 4}; setElements(elements); test.reportUsage(new NonEmptyInterval(0, 3), 5); assertElements(1, 2, 3, 4, 0, 0, 0, 0, 0, 0); }
public Interval reportUsage(Interval usage, int minSize) { return null; }
DynamicArray { public Interval reportUsage(Interval usage, int minSize) { return null; } }
DynamicArray { public Interval reportUsage(Interval usage, int minSize) { return null; } DynamicArray(int growthFactor, int maxOverhead); }
DynamicArray { public Interval reportUsage(Interval usage, int minSize) { return null; } DynamicArray(int growthFactor, int maxOverhead); int getInnerLength(); Interval reportUsage(Interval usage, int minSize); int get(int index); void set(int index, int value); }
DynamicArray { public Interval reportUsage(Interval usage, int minSize) { return null; } DynamicArray(int growthFactor, int maxOverhead); int getInnerLength(); Interval reportUsage(Interval usage, int minSize); int get(int index); void set(int index, int value);  }