Examples of RunnableKratu


Examples of com.google.api.ads.adwords.awreporting.kratubackend.data.RunnableKratu

      //Generate Kratus at Mcc level
      if (topAccountId != null && dateStart != null && dateEnd != null) {
        // Launching a new Service(Thread) to make the request async.
        KratuProcessor kratuProcessor = getApplicationContext().getBean(KratuProcessor.class);

        RunnableKratu runnableKratu = kratuProcessor.createRunnableKratu(
            topAccountId, null, getStorageHelper(), dateStart, dateEnd);

        taskService.submit(runnableKratu);

        result = "OK - Task created, this usually takes 1-2mins for each 1000 accounts/month";
View Full Code Here

Examples of com.google.api.ads.adwords.awreporting.kratubackend.data.RunnableKratu

    account1.setExternalCustomerId(123L);
    accountList = ImmutableList.of(account1, account1, account1);

    storageHelper = new StorageHelper();

    mockedRunnableKratu = new RunnableKratu(456L, accountList, storageHelper, dateStart, dateEnd);

    MockitoAnnotations.initMocks(this);

    when(mockedEntitiesPersister.get(Account.class, "topAccountId", 456L)).thenReturn(accountList);
    storageHelper.setPersister(mockedEntitiesPersister);
View Full Code Here

Examples of com.google.api.ads.adwords.awreporting.kratubackend.data.RunnableKratu

  @Test
  public void testCreateRunnableKratu() {
    Set<Long> accountIds = ImmutableSet.of(1L, 2L);

    RunnableKratu runnableKratu = kratuProcessor.createRunnableKratu(1L, accountIds, storageHelper, dateStart, dateEnd);
    assertNotNull(runnableKratu);

    verify(kratuProcessor, times(1)).createRunnableKratu(Mockito.anyLong(),
        Mockito.anySetOf(Long.class), Mockito.any(StorageHelper.class), Mockito.any(Date.class), Mockito.any(Date.class));
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.