TriggerLocation extends Trigger { TriggerLocation setLongitude(double value) { longitude.setValue(value); return this; } TriggerLocation(); private  TriggerLocation(TriggerLocation triggerLocation); @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 setLongitudeTest() { TriggerLocation t = new TriggerLocation(); t.setLongitude(213); Assert.assertEquals(t.longitude.getValue(), 213, 0d); }