use of org.neo4j.kernel.impl.enterprise.lock.forseti.ForsetiLockManager in project neo4j by neo4j.
the class SlaveLocksClientConcurrentTest method setUp.
@Before
public void setUp() {
master = mock(Master.class, new LockedOnMasterAnswer());
lockManager = new ForsetiLockManager(Config.defaults(), Clocks.systemClock(), ResourceTypes.values());
requestContextFactory = mock(RequestContextFactory.class);
availabilityGuard = new AvailabilityGuard(Clocks.systemClock(), mock(Log.class));
when(requestContextFactory.newRequestContext(Mockito.anyInt())).thenReturn(RequestContext.anonymous(1));
}
Aggregations