@Test public void reportUsage_givenToBig_thenDecreasesElements() throws Exception { setElements(0, 0, 0, 0, 0, 0, 0, 0, 9, 10, 0, 0, 0); Interval actual = test.reportUsage(new NonEmptyInterval(8, 9), 3); assertInterval(new NonEmptyInterval(0, 1), actual); assertElements(9, 10, 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);  }