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

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


  }

  @Test
  public void testSearchVariants_byCallsetName() 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


  }

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

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

    // Get the dataset
View Full Code Here

  }

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

    command.firstFastqFiles = Lists.newArrayList("uri1");
    command.secondFastqFiles = Lists.newArrayList("uri2");
    command.datasetId = "abc";
View Full Code Here

public class ListDatasetsCommandTest extends CommandTest {

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

    command.handleRequest(null /* should be unused */);

    String output = outContent.toString();
    assertTrue(output, output.contains("There aren't any"));
View Full Code Here

  }

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

    command.addDatasetToHistory(new Dataset().setName("name").setId("id"));
    command.handleRequest(null /* should be unused */);

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

  }

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

    Dataset dataset = new Dataset().setName("name1").setId("id");
    command.addDatasetToHistory(dataset);
    command.addDatasetToHistory(new Dataset().setName("name2").setId("deleted"));
    command.includeDetails = true;
View Full Code Here

public class SearchReadGroupSetsCommandTest extends CommandTest {

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

    command.datasetId = "dataset";
    command.name = "12878";

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

  }

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

    command.readGroupSetIds = Lists.newArrayList("r1", "r2");
    command.projectNumber = 3L;
    command.exportUri = "exportme";
View Full Code Here

public class SearchCallSetsCommandTest extends CommandTest {

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

    command.datasetId = "dataset";
    command.name = "12878";

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

public class CreateDatasetCommandTest extends CommandTest {

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

    command.projectNumber = 5L;
    command.name = "dataset";

    Dataset expectedDataset = new Dataset().setName("dataset")
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.