diff --git a/src/androidTest/java/org/ligi/passandroid/injections/FixedPassListPassStore.java b/src/androidTest/java/org/ligi/passandroid/injections/FixedPassListPassStore.java index 72170965..45c51b0e 100644 --- a/src/androidTest/java/org/ligi/passandroid/injections/FixedPassListPassStore.java +++ b/src/androidTest/java/org/ligi/passandroid/injections/FixedPassListPassStore.java @@ -1,5 +1,7 @@ package org.ligi.passandroid.injections; +import com.google.common.base.Optional; + import org.ligi.passandroid.model.PassStore; import org.ligi.passandroid.model.Passbook; import org.ligi.passandroid.model.ReducedPassInformation; @@ -10,6 +12,7 @@ import java.util.List; public class FixedPassListPassStore implements PassStore { private final List passes; + private Passbook actPass; public FixedPassListPassStore(List passes) { this.passes = passes; @@ -63,4 +66,24 @@ public class FixedPassListPassStore implements PassStore { public List getCountedTypes() { return new ArrayList<>(); } + + @Override + public Optional getCurrentPass() { + return Optional.of(actPass); + } + + @Override + public void setCurrentPass(Passbook pass) { + actPass = pass; + } + + @Override + public void setCurrentPass(Optional pass) { + actPass = pass.get(); + } + + @Override + public boolean deletePassWithId(String id) { + return false; + } }