package info.nightscout.androidaps.plugins.general.automation.triggers;

import com.google.common.base.Optional;

public class DummyTrigger extends Trigger {
    private boolean result;

    public DummyTrigger() {
        this.result = false;
    }

    public DummyTrigger(boolean result) {
        this.result = result;
    }

    @Override
    public boolean shouldRun() {
        return result;
    }

    @Override
    public String toJSON() { return null; }

    @Override
    Trigger fromJSON(String data) {
        return null;
    }

    @Override
    public int friendlyName() {
        return 0;
    }

    @Override
    public String friendlyDescription() {
        return null;
    }

    @Override
    public Optional<Integer> icon() {
        return Optional.absent();
    }

    @Override
    public Trigger duplicate() { return new DummyTrigger(result); }
}

@@ -777,32 +777,91 @@
 bsent();%0A    %7D%0A%0A
+    @Override%0A    public void executed(long time) %7B%0A    %7D%0A%0A
     @Override%0A  

fix test