Interface CommonTestKitOps<S,P>
-
- All Superinterfaces:
ClearOps,PolicyOpsTestKit<P>
- All Known Subinterfaces:
PersistenceTestKitOps<S,P>
- All Known Implementing Classes:
PersistenceTestKit,SnapshotTestKit
public interface CommonTestKitOps<S,P> extends ClearOps, PolicyOpsTestKit<P>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <A> AexpectNextPersisted(java.lang.String persistenceId, A event)Check thateventhas been saved in the storage.<A> AexpectNextPersisted(java.lang.String persistenceId, A event, scala.concurrent.duration.FiniteDuration max)Check formaxtime thateventhas been saved in the storage.voidexpectNothingPersisted(java.lang.String persistenceId)Check that nothing has been saved in the storage.voidexpectNothingPersisted(java.lang.String persistenceId, scala.concurrent.duration.FiniteDuration max)Check formaxtime that nothing has been saved in the storage.voidfailNextDelete()Fail next delete from storage attempt with default exception for any persistence id.voidfailNextDelete(java.lang.String persistenceId)Fail next delete from storage attempt with default exception for particular persistence id.voidfailNextDelete(java.lang.String persistenceId, java.lang.Throwable cause)Fail next delete from storage attempt withcauseexception for particular persistence id.voidfailNextDelete(java.lang.Throwable cause)Fail next delete from storage attempt withcauseexception for any persistence id.voidfailNextNDeletes(int n)Fail next n delete from storage attempts with default exception for any persistence id.voidfailNextNDeletes(int n, java.lang.Throwable cause)Fail next n delete from storage attempts withcauseexception for any persistence id.voidfailNextNDeletes(java.lang.String persistenceId, int n)Fail next n delete from storage attempts with default exception for particular persistence id.voidfailNextNDeletes(java.lang.String persistenceId, int n, java.lang.Throwable cause)Fail next n delete from storage attempts withcauseexception for particular persistence id.voidfailNextNPersisted(int n)Fail nextnwrite operations with default exception for any persistence id.voidfailNextNPersisted(int n, java.lang.Throwable cause)Fail nextnwrite operations with thecauseexception for any persistence id.voidfailNextNPersisted(java.lang.String persistenceId, int n)Fail nextnwrite operations for particular persistence id.voidfailNextNPersisted(java.lang.String persistenceId, int n, java.lang.Throwable cause)Fail nextnwrite operations with thecauseexception for particular persistence id.voidfailNextNReads(int n)Fail next n read from storage (recovery) attempts with default exception for any persistence id.voidfailNextNReads(int n, java.lang.Throwable cause)Fail next n read from storage (recovery) attempts withcauseexception for any persistence id.voidfailNextNReads(java.lang.String persistenceId, int n)Fail next n read from storage (recovery) attempts with default exception for particular persistence id.voidfailNextNReads(java.lang.String persistenceId, int n, java.lang.Throwable cause)Fail next n read from storage (recovery) attempts withcauseexception for particular persistence id.voidfailNextPersisted()Fail next write operation with default exception for any persistence id.voidfailNextPersisted(java.lang.String persistenceId)Fail next write operation with default exception for particular persistence id.voidfailNextPersisted(java.lang.String persistenceId, java.lang.Throwable cause)Fail next write operation withcauseexception for particular persistence id.voidfailNextPersisted(java.lang.Throwable cause)Fail next write operation withcauseexception for any persistence id.voidfailNextRead()Fail next read from storage (recovery) attempt with default exception for any persistence id.voidfailNextRead(java.lang.String persistenceId)Fail next read from storage (recovery) attempt with default exception for any persistence id.voidfailNextRead(java.lang.String persistenceId, java.lang.Throwable cause)Fail next read from storage (recovery) attempt withcauseexception for particular persistence id.voidfailNextRead(java.lang.Throwable cause)Fail next read from storage (recovery) attempt withcauseexception for any persistence id.-
Methods inherited from interface akka.persistence.testkit.scaladsl.ClearOps
clearAll, clearByPersistenceId
-
Methods inherited from interface akka.persistence.testkit.scaladsl.PolicyOpsTestKit
failNextNOps, failNextNOps, failNextNOpsCond, failNextNOpsCond, Policies, resetPolicy, withPolicy
-
-
-
-
Method Detail
-
expectNextPersisted
<A> A expectNextPersisted(java.lang.String persistenceId, A event)Check thateventhas been saved in the storage.
-
expectNextPersisted
<A> A expectNextPersisted(java.lang.String persistenceId, A event, scala.concurrent.duration.FiniteDuration max)Check formaxtime thateventhas been saved in the storage.
-
expectNothingPersisted
void expectNothingPersisted(java.lang.String persistenceId)
Check that nothing has been saved in the storage.
-
expectNothingPersisted
void expectNothingPersisted(java.lang.String persistenceId, scala.concurrent.duration.FiniteDuration max)Check formaxtime that nothing has been saved in the storage.
-
failNextDelete
void failNextDelete(java.lang.Throwable cause)
Fail next delete from storage attempt withcauseexception for any persistence id.
-
failNextDelete
void failNextDelete()
Fail next delete from storage attempt with default exception for any persistence id.
-
failNextDelete
void failNextDelete(java.lang.String persistenceId, java.lang.Throwable cause)Fail next delete from storage attempt withcauseexception for particular persistence id.
-
failNextDelete
void failNextDelete(java.lang.String persistenceId)
Fail next delete from storage attempt with default exception for particular persistence id.
-
failNextNDeletes
void failNextNDeletes(int n, java.lang.Throwable cause)Fail next n delete from storage attempts withcauseexception for any persistence id.
-
failNextNDeletes
void failNextNDeletes(int n)
Fail next n delete from storage attempts with default exception for any persistence id.
-
failNextNDeletes
void failNextNDeletes(java.lang.String persistenceId, int n, java.lang.Throwable cause)Fail next n delete from storage attempts withcauseexception for particular persistence id.
-
failNextNDeletes
void failNextNDeletes(java.lang.String persistenceId, int n)Fail next n delete from storage attempts with default exception for particular persistence id.
-
failNextNPersisted
void failNextNPersisted(java.lang.String persistenceId, int n, java.lang.Throwable cause)Fail nextnwrite operations with thecauseexception for particular persistence id.
-
failNextNPersisted
void failNextNPersisted(java.lang.String persistenceId, int n)Fail nextnwrite operations for particular persistence id.
-
failNextNPersisted
void failNextNPersisted(int n, java.lang.Throwable cause)Fail nextnwrite operations with thecauseexception for any persistence id.
-
failNextNPersisted
void failNextNPersisted(int n)
Fail nextnwrite operations with default exception for any persistence id.
-
failNextNReads
void failNextNReads(int n, java.lang.Throwable cause)Fail next n read from storage (recovery) attempts withcauseexception for any persistence id.
-
failNextNReads
void failNextNReads(int n)
Fail next n read from storage (recovery) attempts with default exception for any persistence id.
-
failNextNReads
void failNextNReads(java.lang.String persistenceId, int n, java.lang.Throwable cause)Fail next n read from storage (recovery) attempts withcauseexception for particular persistence id.
-
failNextNReads
void failNextNReads(java.lang.String persistenceId, int n)Fail next n read from storage (recovery) attempts with default exception for particular persistence id.
-
failNextPersisted
void failNextPersisted(java.lang.String persistenceId, java.lang.Throwable cause)Fail next write operation withcauseexception for particular persistence id.
-
failNextPersisted
void failNextPersisted(java.lang.String persistenceId)
Fail next write operation with default exception for particular persistence id.
-
failNextPersisted
void failNextPersisted(java.lang.Throwable cause)
Fail next write operation withcauseexception for any persistence id.
-
failNextPersisted
void failNextPersisted()
Fail next write operation with default exception for any persistence id.
-
failNextRead
void failNextRead(java.lang.Throwable cause)
Fail next read from storage (recovery) attempt withcauseexception for any persistence id.
-
failNextRead
void failNextRead()
Fail next read from storage (recovery) attempt with default exception for any persistence id.
-
failNextRead
void failNextRead(java.lang.String persistenceId, java.lang.Throwable cause)Fail next read from storage (recovery) attempt withcauseexception for particular persistence id.
-
failNextRead
void failNextRead(java.lang.String persistenceId)
Fail next read from storage (recovery) attempt with default exception for any persistence id.
-
-