use of org.jmock.Mockery in project geode by apache.
the class ServerLauncherTest method setup.
@Before
public void setup() {
mockContext = new Mockery() {
{
setImposteriser(ClassImposteriser.INSTANCE);
setThreadingPolicy(new Synchroniser());
}
};
DistributedSystem.removeSystem(InternalDistributedSystem.getConnectedInstance());
}
use of org.jmock.Mockery in project geode by apache.
the class DescribeDiskStoreFunctionJUnitTest method setup.
@Before
public void setup() {
mockContext = new Mockery();
mockContext.setImposteriser(ClassImposteriser.INSTANCE);
mockContext.setThreadingPolicy(new Synchroniser());
}
use of org.jmock.Mockery in project geode by apache.
the class ListIndexFunctionJUnitTest method setup.
@Before
public void setup() {
mockContext = new Mockery() {
{
setImposteriser(ClassImposteriser.INSTANCE);
setThreadingPolicy(new Synchroniser());
}
};
mockCounter = new AtomicLong(0l);
}
use of org.jmock.Mockery in project geode by apache.
the class LoginHandlerInterceptorJUnitTest method setUp.
@Before
public void setUp() {
mockContext = new Mockery();
mockContext.setImposteriser(ClassImposteriser.INSTANCE);
mockContext.setThreadingPolicy(new Synchroniser());
LoginHandlerInterceptor.getEnvironment().clear();
}
use of org.jmock.Mockery in project geode by apache.
the class AutoBalancerJUnitTest method setupMock.
@Before
public void setupMock() {
mockContext = new Mockery() {
{
setImposteriser(ClassImposteriser.INSTANCE);
setThreadingPolicy(new Synchroniser());
}
};
mockCacheFacade = mockContext.mock(CacheOperationFacade.class);
mockAuditor = mockContext.mock(OOBAuditor.class);
mockScheduler = mockContext.mock(AuditScheduler.class);
mockClock = mockContext.mock(TimeProvider.class);
}
Aggregations