use of org.neo4j.kernel.ha.com.slave.MasterClient in project neo4j by neo4j.
the class MasterClientTest method newClientsShouldNotIgnoreStoreIdDifferences.
@Test(expected = MismatchingStoreIdException.class)
public void newClientsShouldNotIgnoreStoreIdDifferences() throws Throwable {
// Given
MasterImpl.SPI masterImplSPI = MasterImplTest.mockedSpi(StoreIdTestFactory.newStoreIdForCurrentVersion(1, 2, 3, 4));
when(masterImplSPI.getTransactionChecksum(anyLong())).thenReturn(5L);
newMasterServer(masterImplSPI);
StoreId storeId = StoreIdTestFactory.newStoreIdForCurrentVersion(5, 6, 7, 8);
MasterClient masterClient = newMasterClient320(storeId);
// When
masterClient.handshake(1, storeId);
}
Aggregations