Package org.apache.aurora.scheduler.testing

Examples of org.apache.aurora.scheduler.testing.FakeStatsProvider


    shutdownRegistry = createMock(ShutdownSystem.class);
    driver = createMock(Driver.class);
    leaderControl = createMock(LeaderControl.class);
    delayedActions = createMock(DelayedActions.class);
    eventSink = createMock(EventSink.class);
    statsProvider = new FakeStatsProvider();
    serviceManager = createMock(ServiceManagerIface.class);
  }
View Full Code Here


  private FakeStatsProvider statsProvider;
  private Logger logger;

  @Before
  public void setUp() {
    statsProvider = new FakeStatsProvider();
    logger = createMock(Logger.class);
  }
View Full Code Here

  private FakeStatsProvider statsProvider;
  private StorageTestUtil storageUtil;

  @Before
  public void setUp() {
    statsProvider = new FakeStatsProvider();
    storageUtil = new StorageTestUtil(this);
    storageUtil.expectOperations();
  }
View Full Code Here

      @Override
      public void tearDown() {
        clock.assertEmpty();
      }
    });
    statsProvider = new FakeStatsProvider();

    Injector injector = Guice.createInjector(
        new LifecycleModule(),
        new PubsubEventModule(false),
        new AbstractModule() {
View Full Code Here

  public void setUp() {
    storageUtil = new StorageTestUtil(this);
    storageUtil.expectOperations();
    stateManager = createMock(StateManager.class);
    clock = new FakeClock();
    statsProvider = new FakeStatsProvider();
    offerQueue = createMock(OfferQueue.class);
    emptyJob = new AttributeAggregate(
        Suppliers.ofInstance(ImmutableSet.<IScheduledTask>of()),
        createMock(AttributeStore.class));
  }
View Full Code Here

      @Override
      public void tearDown() {
        new ExecutorServiceShutdown(executor, Amount.of(1L, Time.SECONDS)).execute();
      }
    });
    statsProvider = new FakeStatsProvider();
    storage = MemStorage.newEmptyStorage(statsProvider);
  }
View Full Code Here

        DbModule.testModule(Bindings.annotatedKeyFactory(Delegated.class)),
        new MemStorageModule(KeyFactory.PLAIN),
        new AbstractModule() {
          @Override
          protected void configure() {
            bind(StatsProvider.class).toInstance(new FakeStatsProvider());
            bind(Clock.class).toInstance(clock);
            bind(StateManager.class).to(StateManagerImpl.class);
            bind(Driver.class).toInstance(driver);
            bind(TaskIdGenerator.class).to(TaskIdGeneratorImpl.class);
            bind(RescheduleCalculator.class).to(RescheduleCalculatorImpl.class);
View Full Code Here

TOP

Related Classes of org.apache.aurora.scheduler.testing.FakeStatsProvider

Copyright © 2018 www.massapicom. 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.