Package akka.persistence.testkit.javadsl
Interface PersistenceProbe<T>
- 
 public interface PersistenceProbe<T>Not for user extension
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<PersistenceEffect<T>>drain()Collect all persistence effects from the probe and empty the probePersistenceProbe<T>expectPersisted(T obj)Assert that the given object was persisted in the oldest persistence effect and remove that persistence effectPersistenceProbe<T>expectPersisted(T obj, java.lang.String tag)Assert that the given object was persisted with the given tag in the oldest persistence effect and remove that persistence effect.PersistenceProbe<T>expectPersisted(T obj, java.util.Set<java.lang.String> tags)Assert that the given object was persisted with the given tag in the oldest persistence effect and remove that persistence effect.<S extends T>
 PersistenceEffect<S>expectPersistedClass(java.lang.Class<S> clazz)Get and remove the oldest persistence effect from the probe, failing if the persisted object is not of the requested typePersistenceEffect<T>extract()Get and remove the oldest persistence effect from the probebooleanhasEffects()Are there any persistence effects
 
- 
- 
- 
Method Detail- 
drainjava.util.List<PersistenceEffect<T>> drain() Collect all persistence effects from the probe and empty the probe
 - 
expectPersistedPersistenceProbe<T> expectPersisted(T obj) Assert that the given object was persisted in the oldest persistence effect and remove that persistence effect
 - 
expectPersistedPersistenceProbe<T> expectPersisted(T obj, java.lang.String tag) Assert that the given object was persisted with the given tag in the oldest persistence effect and remove that persistence effect. If the persistence effect has multiple tags, only one of them has to match in order for the assertion to succeed.
 - 
expectPersistedPersistenceProbe<T> expectPersisted(T obj, java.util.Set<java.lang.String> tags) Assert that the given object was persisted with the given tag in the oldest persistence effect and remove that persistence effect. If the persistence effect has tags which are not given, the assertion fails.
 - 
expectPersistedClass<S extends T> PersistenceEffect<S> expectPersistedClass(java.lang.Class<S> clazz) Get and remove the oldest persistence effect from the probe, failing if the persisted object is not of the requested type
 - 
extractPersistenceEffect<T> extract() Get and remove the oldest persistence effect from the probe
 - 
hasEffectsboolean hasEffects() Are there any persistence effects
 
- 
 
-