@Test public void unitsMatterForExperimentDownloadLink() { RnaSeqBaselineRequestPreferences rnaSeqBaselineRequestPreferences = new RnaSeqBaselineRequestPreferences(); rnaSeqBaselineRequestPreferences.setUnit(ExpressionUnit.Absolute.Rna.TPM); assertThat( new ExperimentPageService() .experimentDownloadLink(experiment, "", rnaSeqBaselineRequestPreferences).toString(), containsString("unit=TPM")); rnaSeqBaselineRequestPreferences.setUnit(ExpressionUnit.Absolute.Rna.FPKM); assertThat( new ExperimentPageService() .experimentDownloadLink(experiment, "", rnaSeqBaselineRequestPreferences).toString(), containsString("unit=FPKM")); }
URI experimentDownloadLink(Experiment experiment, String accessKey, ExperimentPageRequestPreferences requestPreferences) { return callbackLinkWithRequestPreferences( ExperimentDownloadController.DOWNLOAD_URL_TEMPLATE .replace("{experimentAccession}", experiment.getAccession()) .replace("{experimentType}", experiment.getType().getParent().name().toUpperCase()), experiment.getType(), accessKey, requestPreferences); }
ExperimentPageService { URI experimentDownloadLink(Experiment experiment, String accessKey, ExperimentPageRequestPreferences requestPreferences) { return callbackLinkWithRequestPreferences( ExperimentDownloadController.DOWNLOAD_URL_TEMPLATE .replace("{experimentAccession}", experiment.getAccession()) .replace("{experimentType}", experiment.getType().getParent().name().toUpperCase()), experiment.getType(), accessKey, requestPreferences); } }
ExperimentPageService { URI experimentDownloadLink(Experiment experiment, String accessKey, ExperimentPageRequestPreferences requestPreferences) { return callbackLinkWithRequestPreferences( ExperimentDownloadController.DOWNLOAD_URL_TEMPLATE .replace("{experimentAccession}", experiment.getAccession()) .replace("{experimentType}", experiment.getType().getParent().name().toUpperCase()), experiment.getType(), accessKey, requestPreferences); }  }
ExperimentPageService { URI experimentDownloadLink(Experiment experiment, String accessKey, ExperimentPageRequestPreferences requestPreferences) { return callbackLinkWithRequestPreferences( ExperimentDownloadController.DOWNLOAD_URL_TEMPLATE .replace("{experimentAccession}", experiment.getAccession()) .replace("{experimentType}", experiment.getType().getParent().name().toUpperCase()), experiment.getType(), accessKey, requestPreferences); }  static Optional<String> getTheOnlyId(List<? extends Profile> profiles); }
ExperimentPageService { URI experimentDownloadLink(Experiment experiment, String accessKey, ExperimentPageRequestPreferences requestPreferences) { return callbackLinkWithRequestPreferences( ExperimentDownloadController.DOWNLOAD_URL_TEMPLATE .replace("{experimentAccession}", experiment.getAccession()) .replace("{experimentType}", experiment.getType().getParent().name().toUpperCase()), experiment.getType(), accessKey, requestPreferences); }  static Optional<String> getTheOnlyId(List<? extends Profile> profiles);  }