@Test public void reportUsage_givenInitialState() throws Exception { Interval expected = new EmptyInterval(); Interval actual = test.reportUsage(new EmptyInterval(), 1); assertLength(2); 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);  }