use of com.palantir.atlasdb.services.AtlasDbServicesFactory in project atlasdb by palantir.
the class TestSweepCommand method setup.
@BeforeClass
public static void setup() throws Exception {
sweepTimestamp = new AtomicLong();
moduleFactory = new AtlasDbServicesFactory() {
@Override
public TestAtlasDbServices connect(ServicesConfigModule servicesConfigModule) {
return DaggerTestAtlasDbServices.builder().servicesConfigModule(servicesConfigModule).testSweeperModule(TestSweeperModule.create(sweepTimestamp::get)).build();
}
};
}
use of com.palantir.atlasdb.services.AtlasDbServicesFactory in project atlasdb by palantir.
the class TestTimestampCommand method oneTimeSetup.
@BeforeClass
public static void oneTimeSetup() throws Exception {
lock = StringLockDescriptor.of("lock");
moduleFactory = new AtlasDbServicesFactory() {
@Override
public TestAtlasDbServices connect(ServicesConfigModule servicesConfigModule) {
return DaggerTestAtlasDbServices.builder().servicesConfigModule(servicesConfigModule).build();
}
};
}
Aggregations