Search in sources :

Example 1 with OutboundMessageCollector

use of org.neo4j.causalclustering.core.consensus.OutboundMessageCollector in project neo4j by neo4j.

the class RaftLogShipperTest method setup.

@Before
public void setup() {
    // defaults
    outbound = new OutboundMessageCollector();
    raftLog = new InMemoryRaftLog();
    clock = Clocks.systemClock();
    leader = member(0);
    follower = member(1);
    leaderTerm = 0;
    leaderCommit = 0;
    retryTimeMillis = 100000;
    logProvider = mock(LogProvider.class);
    log = mock(Log.class);
    when(logProvider.getLog(RaftLogShipper.class)).thenReturn(log);
}
Also used : LogProvider(org.neo4j.logging.LogProvider) OutboundMessageCollector(org.neo4j.causalclustering.core.consensus.OutboundMessageCollector) InMemoryRaftLog(org.neo4j.causalclustering.core.consensus.log.InMemoryRaftLog) InMemoryRaftLog(org.neo4j.causalclustering.core.consensus.log.InMemoryRaftLog) Log(org.neo4j.logging.Log) RaftLog(org.neo4j.causalclustering.core.consensus.log.RaftLog) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 OutboundMessageCollector (org.neo4j.causalclustering.core.consensus.OutboundMessageCollector)1 InMemoryRaftLog (org.neo4j.causalclustering.core.consensus.log.InMemoryRaftLog)1 RaftLog (org.neo4j.causalclustering.core.consensus.log.RaftLog)1 Log (org.neo4j.logging.Log)1 LogProvider (org.neo4j.logging.LogProvider)1