PumpEnactResult { public PumpEnactResult carbsDelivered(double carbsDelivered) { this.carbsDelivered = carbsDelivered; return this; }  PumpEnactResult success(boolean success); PumpEnactResult enacted(boolean enacted); PumpEnactResult comment(String comment); PumpEnactResult comment(int comment); PumpEnactResult duration(int duration); PumpEnactResult absolute(double absolute); PumpEnactResult percent(int percent); PumpEnactResult isPercent(boolean isPercent); PumpEnactResult isTempCancel(boolean isTempCancel); PumpEnactResult bolusDelivered(double bolusDelivered); PumpEnactResult carbsDelivered(double carbsDelivered); PumpEnactResult queued(boolean queued); String log(); String toString(); String toHtml(); JSONObject json(Profile profile); public boolean success; public boolean enacted; public String comment; public int duration; public double absolute; public int percent; public boolean isPercent; public boolean isTempCancel; public double bolusDelivered; public double carbsDelivered; public boolean queued; }
@Test public void carbsDeliveredTest() throws Exception { per.carbsDelivered(11d); Assert.assertEquals(11d, per.carbsDelivered, 0.01d); }