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

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


  }

  @Test
  public void testCalling_missingSource() throws Exception {
    CallVariantsCommand command = new CallVariantsCommand();
    command.setDataStoreFactory(new MemoryDataStoreFactory());
    command.datasetId = "abc";

    command.handleRequest(genomics);

    String output = outContent.toString();
View Full Code Here


  }

  @Test
  public void testCalling_tooManyParams() throws Exception {
    CallVariantsCommand command = new CallVariantsCommand();
    command.setDataStoreFactory(new MemoryDataStoreFactory());
    command.datasetId = "abc";
    command.readGroupSetIds = Lists.newArrayList("rgs");
    command.bamFiles = Lists.newArrayList("uri1");

    command.handleRequest(genomics);
View Full Code Here

  }

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

    command.bamFiles = Lists.newArrayList("uri1");
    command.datasetId = "abc";

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

  }

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

    command.bamFiles = Lists.newArrayList("uri1", "uri2");
    command.datasetId = "abc";

    // Get the dataset
View Full Code Here

public class ListJobsCommandTest extends CommandTest {

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

    command.addJobToHistory("jobid", "description");
    assertEquals(1, command.getLaunchedJobs().size());

    command.handleRequest(null /* should be unused */);
 
View Full Code Here

  }

  @Test
  public void testListJobs_byProjectId() throws Exception {
    ListJobsCommand command = new ListJobsCommand();
    command.setDataStoreFactory(new MemoryDataStoreFactory());
    command.addJobToHistory("previousJob", "previousDescription");

    command.projectNumber = 9L;

    Mockito.when(jobs.search(new SearchJobsRequest().setProjectNumber(9L).setPageSize(10)))
View Full Code Here

  }

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

    command.projectNumber = 9L;
    command.createdAfter = new Date(123L);
    command.createdBefore = new Date(456L);
View Full Code Here

  }

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

    command.createdBefore = new Date();
    command.handleRequest(genomics);

    String output = outContent.toString();
View Full Code Here

  }

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

    command.fastqFiles = Lists.newArrayList("uri1");
    command.datasetId = "abc";

    // Get the dataset
View Full Code Here

public class SearchVariantsCommandTest extends CommandTest {

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

    command.datasetId = "dataset";
    command.referenceName = "chr1";
    command.start = 1L;
    command.end = 5L;
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.