Package com.google.api.client.util.store

Examples of com.google.api.client.util.store.MemoryDataStoreFactory


  public void setup() {
    command = new BaseCommand() {
      @Override
      public void handleRequest(Genomics genomics) throws IOException {}
    };
    MemoryDataStoreFactory factory = new MemoryDataStoreFactory();
    command.setDataStoreFactory(factory);
  }
View Full Code Here


public class GetDatasetsCommandTest extends CommandTest {

  @Test
  public void testGetDatasets() throws Exception {
    GetDatasetsCommand command = new GetDatasetsCommand();
    command.setDataStoreFactory(new MemoryDataStoreFactory());

    command.datasetIds = Lists.newArrayList("d1", "d2");
    command.includeDetails = false;

    Dataset dataset1 = new Dataset().setId("d1").setName("name1");
View Full Code Here

public class UpdateDatasetCommandTest extends CommandTest {

  @Test
  public void testCommand() throws Exception {
    UpdateDatasetCommand command = new UpdateDatasetCommand();
    command.setDataStoreFactory(new MemoryDataStoreFactory());

    command.datasetId = "id";
    command.name = "name";

    Mockito.when(datasets.get("id")).thenReturn(datasetGet);
View Full Code Here

  }

  @Test
  public void testExportVariants() throws Exception {
    ExportVariantsCommand command = new ExportVariantsCommand();
    command.setDataStoreFactory(new MemoryDataStoreFactory());

    command.variantSetId = "abc";
    command.projectNumber = 3L;
    command.bigqueryDataset = "bigqueryDataset";
    command.bigqueryTable = "bigqueryTable";
View Full Code Here

  }

  @Test
  public void testImportVariants() throws Exception {
    ImportVariantsCommand command = new ImportVariantsCommand();
    command.setDataStoreFactory(new MemoryDataStoreFactory());

    command.vcfFiles = Lists.newArrayList("uri1", "uri2");
    command.variantSetId = "abc";

    // Get the dataset
View Full Code Here

    }

    // It is highly recommended that you use a credential store in your
    // application to store a per-user Credential.
    // See: https://code.google.com/p/google-oauth-java-client/wiki/OAuth2
    DataStoreFactory storeFactory = new MemoryDataStoreFactory();

    // Authorize and store your credential.
    authorize(storeFactory, USER_ID);

    // Create a AdWordsSession from the credential store. You will typically do this
View Full Code Here

    }

    // It is highly recommended that you use a credential store in your
    // application to store a per-user Credential.
    // See: https://code.google.com/p/google-oauth-java-client/wiki/OAuth2
    DataStoreFactory storeFactory = new MemoryDataStoreFactory();

    // Authorize and store your credential.
    authorize(storeFactory, USER_ID);

    // Create a DfpSession from the credential store. You will typically do this
View Full Code Here

    }

    // It is highly recommended that you use a credential store in your
    // application to store a per-user Credential.
    // See: https://code.google.com/p/google-oauth-java-client/wiki/OAuth2
    DataStoreFactory storeFactory = new MemoryDataStoreFactory();

    // Authorize and store your credential.
    authorize(storeFactory, USER_ID);

    // Create a AdWordsSession from the credential store. You will typically do this
View Full Code Here

TOP

Related Classes of com.google.api.client.util.store.MemoryDataStoreFactory

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.