Interface PersistenceTestKitOps<S,​P>

    • Method Detail

      • persistForRecovery

        void persistForRecovery​(java.lang.String persistenceId,
                                scala.collection.immutable.Seq<java.lang.Object> events)
        Persist snapshots into storage in order.
      • persistedInStorage

        scala.collection.immutable.Seq<java.lang.Object> persistedInStorage​(java.lang.String persistenceId)
        Retrieve all snapshots saved in storage by persistence id.
      • rejectNextDelete

        void rejectNextDelete()
        Reject next delete from storage operation for any persistence id with default exception.
      • rejectNextDelete

        void rejectNextDelete​(java.lang.Throwable cause)
        Reject next delete from storage operation for any persistence id with cause exception.
      • rejectNextDelete

        void rejectNextDelete​(java.lang.String persistenceId)
        Reject next delete from storage operations for particular persistence id with default exception.
      • rejectNextDelete

        void rejectNextDelete​(java.lang.String persistenceId,
                              java.lang.Throwable cause)
        Reject next delete from storage operations for particular persistence id with cause exception.
      • rejectNextNDeletes

        void rejectNextNDeletes​(int n)
        Reject next n delete from storage operations for any persistence id with default exception.
      • rejectNextNDeletes

        void rejectNextNDeletes​(int n,
                                java.lang.Throwable cause)
        Reject next n delete from storage operations for any persistence id with cause exception.
      • rejectNextNDeletes

        void rejectNextNDeletes​(java.lang.String persistenceId,
                                int n)
        Reject next n delete from storage operations for particular persistence id with default exception.
      • rejectNextNDeletes

        void rejectNextNDeletes​(java.lang.String persistenceId,
                                int n,
                                java.lang.Throwable cause)
        Reject next n delete from storage operations for particular persistence id with cause exception.
      • rejectNextNPersisted

        void rejectNextNPersisted​(java.lang.String persistenceId,
                                  int n,
                                  java.lang.Throwable cause)
        Reject next n save in storage operations for particular persistence id with cause exception.
      • rejectNextNPersisted

        void rejectNextNPersisted​(java.lang.String persistenceId,
                                  int n)
        Reject next n save in storage operations for particular persistence id with default exception.
      • rejectNextNPersisted

        void rejectNextNPersisted​(int n)
        Reject next n save in storage operations for any persistence id with default exception.
      • rejectNextNPersisted

        void rejectNextNPersisted​(int n,
                                  java.lang.Throwable cause)
        Reject next n save in storage operations for any persistence id with cause exception.
      • rejectNextNReads

        void rejectNextNReads​(int n)
        Reject next n read from storage operations for any persistence id with default exception.
      • rejectNextNReads

        void rejectNextNReads​(int n,
                              java.lang.Throwable cause)
        Reject next n read from storage operations for any persistence id with cause exception.
      • rejectNextNReads

        void rejectNextNReads​(java.lang.String persistenceId,
                              int n)
        Reject next n read from storage operations for particular persistence id with default exception.
      • rejectNextNReads

        void rejectNextNReads​(java.lang.String persistenceId,
                              int n,
                              java.lang.Throwable cause)
        Reject next n read from storage operations for particular persistence id with cause exception.
      • rejectNextPersisted

        void rejectNextPersisted​(java.lang.String persistenceId)
        Reject next save in storage operation for particular persistence id with default exception.
      • rejectNextPersisted

        void rejectNextPersisted​(java.lang.String persistenceId,
                                 java.lang.Throwable cause)
        Reject next save in storage operation for particular persistence id with cause exception.
      • rejectNextPersisted

        void rejectNextPersisted​(java.lang.Throwable cause)
        Reject next save in storage operation for any persistence id with cause exception.
      • rejectNextPersisted

        void rejectNextPersisted()
        Reject next save in storage operation for any persistence id with default exception.
      • rejectNextRead

        void rejectNextRead()
        Reject next read from storage operation for any persistence id with default exception.
      • rejectNextRead

        void rejectNextRead​(java.lang.Throwable cause)
        Reject next read from storage operation for any persistence id with cause exception.
      • rejectNextRead

        void rejectNextRead​(java.lang.String persistenceId)
        Reject next read from storage operation for particular persistence id with default exception.
      • rejectNextRead

        void rejectNextRead​(java.lang.String persistenceId,
                            java.lang.Throwable cause)
        Reject next read from storage operation for particular persistence id with cause exception.