@Test(expected = IllegalArgumentException.class) public void setting_count_less_than_0_throws_exception() { this.multipleCount.setCount(-1); }
public void setCount(int count) { if (count < 0) { throw new IllegalArgumentException("Count must not be less than zero"); } this.count = count; }
MultipleCount { public void setCount(int count) { if (count < 0) { throw new IllegalArgumentException("Count must not be less than zero"); } this.count = count; } }
MultipleCount { public void setCount(int count) { if (count < 0) { throw new IllegalArgumentException("Count must not be less than zero"); } this.count = count; } MultipleCount();  MultipleCount(int initialCount); }
MultipleCount { public void setCount(int count) { if (count < 0) { throw new IllegalArgumentException("Count must not be less than zero"); } this.count = count; } MultipleCount();  MultipleCount(int initialCount); int getCount(); void setCount(int count); }
MultipleCount { public void setCount(int count) { if (count < 0) { throw new IllegalArgumentException("Count must not be less than zero"); } this.count = count; } MultipleCount();  MultipleCount(int initialCount); int getCount(); void setCount(int count);  }