@Test public void reportUsage_givenRightSize_returnsUsage() throws Exception { NonEmptyInterval expected = new NonEmptyInterval(4, 8); int[] elements = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; setElements(elements); Interval actual = test.reportUsage(expected, 5); assertElements(elements); assertInterval(expected, actual); }
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);  }