@Test public void dataProviderUrlAndDescriptionCanBeCommaSeparated() { mockDataFileHub.addFactorsFile(experimentAccession, Lists.newArrayList( "<factors-definition>\n" + " <defaultFilterFactors>\n" + " <filterFactor>\n" + " <type>DEVELOPMENTAL_STAGE</type>\n" + " <value>adult</value>\n" + " </filterFactor>\n" + " </defaultFilterFactors>\n" + " <defaultQueryFactorType>ORGANISM_PART</defaultQueryFactorType>\n" + " <menuFilterFactorTypes>DEVELOPMENTAL_STAGE, ORGANISM_PART</menuFilterFactorTypes>\n" + " <landingPageDisplayName>Proteomics - Tissues - Human Proteome Map</landingPageDisplayName>\n" + " <dataProviderURL>http: "http: " <dataProviderDescription>A draft map of the human proteome, " + "PRIDE Archive</dataProviderDescription>\n" + " <speciesMapping/>\n" + "</factors-definition>")); BaselineExperimentConfiguration result = subject.getBaselineFactorsConfiguration(experimentAccession); assertThat(result.getDataProviderURL().size(), is(2)); assertThat(result.getDataProviderDescription().size(), is(2)); }
public BaselineExperimentConfiguration getBaselineFactorsConfiguration(String experimentAccession) { return new BaselineExperimentConfiguration( dataFileHub.getBaselineExperimentFiles(experimentAccession).factors.get()); }
ConfigurationTrader { public BaselineExperimentConfiguration getBaselineFactorsConfiguration(String experimentAccession) { return new BaselineExperimentConfiguration( dataFileHub.getBaselineExperimentFiles(experimentAccession).factors.get()); } }
ConfigurationTrader { public BaselineExperimentConfiguration getBaselineFactorsConfiguration(String experimentAccession) { return new BaselineExperimentConfiguration( dataFileHub.getBaselineExperimentFiles(experimentAccession).factors.get()); } @Inject  ConfigurationTrader(DataFileHub dataFileHub); }
ConfigurationTrader { public BaselineExperimentConfiguration getBaselineFactorsConfiguration(String experimentAccession) { return new BaselineExperimentConfiguration( dataFileHub.getBaselineExperimentFiles(experimentAccession).factors.get()); } @Inject  ConfigurationTrader(DataFileHub dataFileHub); BaselineExperimentConfiguration getBaselineFactorsConfiguration(String experimentAccession); ExperimentConfiguration getExperimentConfiguration(String experimentAccession); MicroarrayExperimentConfiguration getMicroarrayExperimentConfiguration(String experimentAccession); }
ConfigurationTrader { public BaselineExperimentConfiguration getBaselineFactorsConfiguration(String experimentAccession) { return new BaselineExperimentConfiguration( dataFileHub.getBaselineExperimentFiles(experimentAccession).factors.get()); } @Inject  ConfigurationTrader(DataFileHub dataFileHub); BaselineExperimentConfiguration getBaselineFactorsConfiguration(String experimentAccession); ExperimentConfiguration getExperimentConfiguration(String experimentAccession); MicroarrayExperimentConfiguration getMicroarrayExperimentConfiguration(String experimentAccession);  }