use of io.camunda.zeebe.engine.util.TestStreams in project zeebe by camunda.
the class StreamProcessorInconsistentPositionTest method setup.
@Before
public void setup() {
testStreams = new TestStreams(tempFolder, closeables, actorSchedulerRule.get());
final var listLogStorage = new ListLogStorage();
testStreams.createLogStream(getLogName(1), 1, listLogStorage);
testStreams.createLogStream(getLogName(2), 2, listLogStorage);
firstStreamProcessorComposite = new StreamProcessingComposite(testStreams, 1, DefaultZeebeDbFactory.defaultFactory(), actorSchedulerRule.get());
secondStreamProcessorComposite = new StreamProcessingComposite(testStreams, 2, DefaultZeebeDbFactory.defaultFactory(), actorSchedulerRule.get());
}
use of io.camunda.zeebe.engine.util.TestStreams in project zeebe by zeebe-io.
the class SkipFailingEventsTest method setUp.
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
streams = new TestStreams(tempFolder, closeables, actorSchedulerRule.get());
commandResponseWriter = streams.getMockedResponseWriter();
stream = streams.createLogStream(STREAM_NAME);
final AtomicLong key = new AtomicLong();
keyGenerator = () -> key.getAndIncrement();
}
use of io.camunda.zeebe.engine.util.TestStreams in project zeebe by zeebe-io.
the class StreamProcessorInconsistentPositionTest method setup.
@Before
public void setup() {
testStreams = new TestStreams(tempFolder, closeables, actorSchedulerRule.get());
final var listLogStorage = new ListLogStorage();
testStreams.createLogStream(getLogName(1), 1, listLogStorage);
testStreams.createLogStream(getLogName(2), 2, listLogStorage);
firstStreamProcessorComposite = new StreamProcessingComposite(testStreams, 1, DefaultZeebeDbFactory.defaultFactory(), actorSchedulerRule.get());
secondStreamProcessorComposite = new StreamProcessingComposite(testStreams, 2, DefaultZeebeDbFactory.defaultFactory(), actorSchedulerRule.get());
}
use of io.camunda.zeebe.engine.util.TestStreams in project zeebe by zeebe-io.
the class TypedStreamProcessorTest method setUp.
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
streams = new TestStreams(tempFolder, closeables, actorSchedulerRule.get());
mockCommandResponseWriter = streams.getMockedResponseWriter();
stream = streams.createLogStream(STREAM_NAME);
final AtomicLong key = new AtomicLong();
keyGenerator = () -> key.getAndIncrement();
}
use of io.camunda.zeebe.engine.util.TestStreams in project zeebe by camunda-cloud.
the class StreamProcessorInconsistentPositionTest method setup.
@Before
public void setup() {
testStreams = new TestStreams(tempFolder, closeables, actorSchedulerRule.get());
final var listLogStorage = new ListLogStorage();
testStreams.createLogStream(getLogName(1), 1, listLogStorage);
testStreams.createLogStream(getLogName(2), 2, listLogStorage);
firstStreamProcessorComposite = new StreamProcessingComposite(testStreams, 1, DefaultZeebeDbFactory.defaultFactory(), actorSchedulerRule.get());
secondStreamProcessorComposite = new StreamProcessingComposite(testStreams, 2, DefaultZeebeDbFactory.defaultFactory(), actorSchedulerRule.get());
}
Aggregations