Search in sources :

Example 1 with TestStreams

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());
}
Also used : TestStreams(io.camunda.zeebe.engine.util.TestStreams) ListLogStorage(io.camunda.zeebe.engine.util.ListLogStorage) StreamProcessingComposite(io.camunda.zeebe.engine.util.StreamProcessingComposite) Before(org.junit.Before)

Example 2 with TestStreams

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();
}
Also used : AtomicLong(java.util.concurrent.atomic.AtomicLong) TestStreams(io.camunda.zeebe.engine.util.TestStreams) Before(org.junit.Before)

Example 3 with TestStreams

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());
}
Also used : TestStreams(io.camunda.zeebe.engine.util.TestStreams) ListLogStorage(io.camunda.zeebe.logstreams.util.ListLogStorage) StreamProcessingComposite(io.camunda.zeebe.engine.util.StreamProcessingComposite) Before(org.junit.Before)

Example 4 with TestStreams

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();
}
Also used : AtomicLong(java.util.concurrent.atomic.AtomicLong) TestStreams(io.camunda.zeebe.engine.util.TestStreams) Before(org.junit.Before)

Example 5 with TestStreams

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());
}
Also used : TestStreams(io.camunda.zeebe.engine.util.TestStreams) ListLogStorage(io.camunda.zeebe.logstreams.util.ListLogStorage) StreamProcessingComposite(io.camunda.zeebe.engine.util.StreamProcessingComposite) Before(org.junit.Before)

Aggregations

TestStreams (io.camunda.zeebe.engine.util.TestStreams)9 Before (org.junit.Before)9 AtomicLong (java.util.concurrent.atomic.AtomicLong)6 StreamProcessingComposite (io.camunda.zeebe.engine.util.StreamProcessingComposite)3 ListLogStorage (io.camunda.zeebe.logstreams.util.ListLogStorage)2 ListLogStorage (io.camunda.zeebe.engine.util.ListLogStorage)1