Examples of expectOperations()


Examples of org.apache.aurora.scheduler.storage.testing.StorageTestUtil.expectOperations()

    IScheduledTask task3 = makeTask(ImmutableMap.of(clock.nowMillis() - 3000, PENDING), 2);
    IScheduledTask task4 = makeTask(ImmutableMap.of(clock.nowMillis() - 4000, PENDING), 3, false);

    clock.advance(Amount.of(10L, Time.SECONDS));
    storageUtil.expectTaskFetch(Query.unscoped(), task1, task2, task3, task4);
    storageUtil.expectOperations();

    control.replay();
    calculator.run();

    Set<String> metricNames = generateMetricNames(
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.testing.StorageTestUtil.expectOperations()

public class JobUpdateHistoryPrunerTest extends EasyMockTest {
  @Test
  public void testExecution() throws Exception {
    StorageTestUtil storageUtil = new StorageTestUtil(this);
    storageUtil.expectOperations();

    final ScheduledExecutorService executor = createMock(ScheduledExecutorService.class);
    FakeScheduledExecutor executorClock =
        FakeScheduledExecutor.scheduleAtFixedRateExecutor(executor, 2);
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.