xyz.block.ftl.ConsumableTopic
xyz.block.ftl.WriteableTopic
public interface FakeTopic<T extends WriteableTopic<P, M>, P, M extends TopicPartitionMapper<in P>> implements WriteableTopic<T, M>
An interface that can be used to mock out a topic for unit testing.
static <T extends WriteableTopic<P, M>, P, M extends TopicPartitionMapper<in P>> T
create(Class<T> type)
abstract P
poll()
static <T extends WriteableTopic<P, M>, P, M extends TopicPartitionMapper<in P>> P
next(T topic)
publish
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@NotNull() static <T extends WriteableTopic<P, M>, P, M extends TopicPartitionMapper<in P>> T create(Class<T> type)
abstract P poll()
Retrieves items from the topic
The next item that was written to the topic, or null if it is empty
static <T extends WriteableTopic<P, M>, P, M extends TopicPartitionMapper<in P>> P next(T topic)