Search in sources :

Example 16 with TransactionCommitProcess

use of org.neo4j.kernel.impl.api.TransactionCommitProcess in project neo4j by neo4j.

the class CommunityCommitProcessFactoryTest method createRegularCommitProcess.

@Test
public void createRegularCommitProcess() {
    CommunityCommitProcessFactory factory = new CommunityCommitProcessFactory();
    TransactionCommitProcess commitProcess = factory.create(mock(TransactionAppender.class), mock(StorageEngine.class), Config.empty());
    assertThat(commitProcess, instanceOf(TransactionRepresentationCommitProcess.class));
}
Also used : ReadOnlyTransactionCommitProcess(org.neo4j.kernel.impl.api.ReadOnlyTransactionCommitProcess) TransactionCommitProcess(org.neo4j.kernel.impl.api.TransactionCommitProcess) TransactionAppender(org.neo4j.kernel.impl.transaction.log.TransactionAppender) TransactionRepresentationCommitProcess(org.neo4j.kernel.impl.api.TransactionRepresentationCommitProcess) StorageEngine(org.neo4j.storageengine.api.StorageEngine) Test(org.junit.Test)

Aggregations

TransactionCommitProcess (org.neo4j.kernel.impl.api.TransactionCommitProcess)16 Test (org.junit.Test)11 TransactionToApply (org.neo4j.kernel.impl.api.TransactionToApply)5 TransactionAppender (org.neo4j.kernel.impl.transaction.log.TransactionAppender)5 StorageEngine (org.neo4j.storageengine.api.StorageEngine)5 TransactionFailureException (org.neo4j.kernel.api.exceptions.TransactionFailureException)4 ReadOnlyTransactionCommitProcess (org.neo4j.kernel.impl.api.ReadOnlyTransactionCommitProcess)4 CommitEvent (org.neo4j.kernel.impl.transaction.tracing.CommitEvent)4 TransactionApplicationMode (org.neo4j.storageengine.api.TransactionApplicationMode)4 KernelTransactions (org.neo4j.kernel.impl.api.KernelTransactions)3 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)2 Dependencies (org.neo4j.com.storecopy.TransactionCommittingResponseUnpacker.Dependencies)2 Config (org.neo4j.kernel.configuration.Config)2 DelegateInvocationHandler (org.neo4j.kernel.ha.DelegateInvocationHandler)2 TransactionRepresentationCommitProcess (org.neo4j.kernel.impl.api.TransactionRepresentationCommitProcess)2 TransactionRepresentation (org.neo4j.kernel.impl.transaction.TransactionRepresentation)2 IOException (java.io.IOException)1 String.format (java.lang.String.format)1 Consumer (java.util.function.Consumer)1 InOrder (org.mockito.InOrder)1