Examples of StorageTestUtil


Examples of org.apache.aurora.scheduler.storage.testing.StorageTestUtil

  private MaintenanceController maintenance;
  private EventSink eventSink;

  @Before
  public void setUp() throws Exception {
    storageUtil = new StorageTestUtil(this);
    storageUtil.expectOperations();
    stateManager = createMock(StateManager.class);

    Injector injector = Guice.createInjector(
        new AbstractModule() {
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.testing.StorageTestUtil

            bindMock(Recovery.class);
            bindMock(SchedulerCore.class);
            bindMock(LockManager.class);
            bindMock(ShutdownRegistry.class);
            bindMock(StateManager.class);
            storageTestUtil = new StorageTestUtil(ThriftIT.this);
            bind(Storage.class).toInstance(storageTestUtil.storage);
            bind(NonVolatileStorage.class).toInstance(storageTestUtil.storage);
            bindMock(StorageBackup.class);
            bind(QuotaManager.class).toInstance(quotaManager);
            bind(SessionValidator.class).toInstance(validator);
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.testing.StorageTestUtil

  private OfferQueue offerQueue;
  private AttributeAggregate emptyJob;

  @Before
  public void setUp() {
    storageUtil = new StorageTestUtil(this);
    storageUtil.expectOperations();
    stateManager = createMock(StateManager.class);
    maintenance = createMock(MaintenanceController.class);
    clock = new FakeClock();
    offerQueue = createMock(OfferQueue.class);
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.testing.StorageTestUtil

  private StorageTestUtil storageUtil;
  private QuotaManagerImpl quotaManager;

  @Before
  public void setUp() throws Exception {
    storageUtil = new StorageTestUtil(this);
    quotaManager = new QuotaManagerImpl(storageUtil.storage);
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.testing.StorageTestUtil

    LogManager logManager = new LogManager(log, Amount.of(1, Data.GB), false);

    schedulingService = createMock(SchedulingService.class);
    snapshotStore = createMock(new Clazz<SnapshotStore<Snapshot>>() { });
    storageUtil = new StorageTestUtil(this);

    logStorage =
        new LogStorage(logManager,
            schedulingService,
            snapshotStore,
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.testing.StorageTestUtil

  @Before
  public void setUp() {
    FakeClock clock = new FakeClock();
    clock.setNowMillis(NOW);
    storageUtil = new StorageTestUtil(this);
    snapshotStore = new SnapshotStoreImpl(clock, storageUtil.storage);
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.testing.StorageTestUtil

  private NearestFit nearestFit;
  private StateManager stateManager;

  @Before
  public void setUp() throws Exception {
    storageUtil = new StorageTestUtil(this);
    storageUtil.expectOperations();
    scheduler = createMock(SchedulerCore.class);
    lockManager = createMock(LockManager.class);
    userValidator = createMock(CapabilityValidator.class);
    context = createMock(SessionContext.class);
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.testing.StorageTestUtil

  private QuotaManagerImpl quotaManager;
  private CronJobManager cronJobManager;

  @Before
  public void setUp() throws Exception {
    storageUtil = new StorageTestUtil(this);
    jobUpdateStore = storageUtil.jobUpdateStore;
    cronJobManager = createMock(CronJobManager.class);
    quotaManager = new QuotaManagerImpl(storageUtil.storage, cronJobManager);
    storageUtil.expectOperations();
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.testing.StorageTestUtil

  private UUIDGenerator uuidGenerator;
  private JobUpdateController jobUpdateController;

  @Before
  public void setUp() throws Exception {
    storageUtil = new StorageTestUtil(this);
    storageUtil.expectOperations();
    lockManager = createMock(LockManager.class);
    userValidator = createMock(CapabilityValidator.class);
    context = createMock(SessionContext.class);
    setUpValidationExpectations();
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.testing.StorageTestUtil

  @Before
  public void setUp() {
    offerQueue = createMock(OfferQueue.class);
    stateManager = createMock(StateManager.class);
    storageUtil = new StorageTestUtil(this);
    storageUtil.expectOperations();
    launcher = new UserTaskLauncher(storageUtil.storage, offerQueue, stateManager);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.