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); }
}

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 void executed(long time) {
    }

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

fix test