@Test public void testLineAllotRule() throws Exception { LineAllotRule lineAllotRule = new LineAllotRule(100); Assert.assertEquals(lineAllotRule.getType(), BaseAllotRule.AllotType.LINE); Assert.assertEquals(lineAllotRule.getCapacity(), 100); lineAllotRule = new LineAllotRule(); Assert.assertEquals(lineAllotRule.getCapacity(), 10000000); }
public LineAllotRule(int capacity) { super(capacity); }
LineAllotRule extends BaseAllotRule { public LineAllotRule(int capacity) { super(capacity); } }
LineAllotRule extends BaseAllotRule { public LineAllotRule(int capacity) { super(capacity); } LineAllotRule(int capacity);  LineAllotRule(); }
LineAllotRule extends BaseAllotRule { public LineAllotRule(int capacity) { super(capacity); } LineAllotRule(int capacity);  LineAllotRule(); @Override Type getType(); }
LineAllotRule extends BaseAllotRule { public LineAllotRule(int capacity) { super(capacity); } LineAllotRule(int capacity);  LineAllotRule(); @Override Type getType(); static final int STEP; }