TriggerDelta extends Trigger { private void initializer() { this.deltaType = DeltaType.DELTA; comparator = new Comparator(); if (units.equals(Constants.MMOL)) value = new InputDelta(0, -MMOL_MAX, MMOL_MAX, 0.1d, new DecimalFormat("0.1"), DeltaType.DELTA); else value = new InputDelta(0, -MGDL_MAX, MGDL_MAX, 1d, new DecimalFormat("1"), DeltaType.DELTA); } TriggerDelta(); private  TriggerDelta(TriggerDelta triggerDelta); double getValue(); DeltaType getType(); String getUnits(); Comparator getComparator(); @Override synchronized boolean shouldRun(); @Override synchronized String toJSON(); @Override int friendlyName(); @Override String friendlyDescription(); @Override Optional<Integer> icon(); @Override Trigger duplicate(); @Override void generateDialog(LinearLayout root, FragmentManager fragmentManager);  }
@Test public void initializerTest(){ TriggerDelta t = new TriggerDelta(); Assert.assertTrue(t.getUnits().equals(Constants.MGDL)); }