TriggerLocation extends Trigger { TriggerLocation lastRun(long lastRun) { this.lastRun = lastRun; 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 lastRunTest() { TriggerLocation t = new TriggerLocation(); t.lastRun(now); Assert.assertEquals(t.lastRun, 1514766900000L, 0d); }