@Test void whenAssayGroupsHaveNoConditionsResultIsEmpty() { when(conditionsCollector.getConditions(any(BaselineExperiment.class))) .thenReturn(Stream.empty()); assertThat(subject.conditionsPerDataColumnDescriptor(baselineExperimentMock)) .isEmpty(); }
public Multimap<String, String> conditionsPerDataColumnDescriptor(BaselineExperiment experiment) { return conditionsCollector.getConditions(experiment) .collect(flatteningToImmutableSetMultimap( Condition::getAssayGroupId, condition -> condition.getValues().stream())); }
ConditionsLookupService { public Multimap<String, String> conditionsPerDataColumnDescriptor(BaselineExperiment experiment) { return conditionsCollector.getConditions(experiment) .collect(flatteningToImmutableSetMultimap( Condition::getAssayGroupId, condition -> condition.getValues().stream())); } }
ConditionsLookupService { public Multimap<String, String> conditionsPerDataColumnDescriptor(BaselineExperiment experiment) { return conditionsCollector.getConditions(experiment) .collect(flatteningToImmutableSetMultimap( Condition::getAssayGroupId, condition -> condition.getValues().stream())); } ConditionsLookupService(ConditionsCollector conditionsCollector); }
ConditionsLookupService { public Multimap<String, String> conditionsPerDataColumnDescriptor(BaselineExperiment experiment) { return conditionsCollector.getConditions(experiment) .collect(flatteningToImmutableSetMultimap( Condition::getAssayGroupId, condition -> condition.getValues().stream())); } ConditionsLookupService(ConditionsCollector conditionsCollector); Multimap<String, String> conditionsPerDataColumnDescriptor(BaselineExperiment experiment); Multimap<String, String> conditionsPerDataColumnDescriptor(DifferentialExperiment experiment); }
ConditionsLookupService { public Multimap<String, String> conditionsPerDataColumnDescriptor(BaselineExperiment experiment) { return conditionsCollector.getConditions(experiment) .collect(flatteningToImmutableSetMultimap( Condition::getAssayGroupId, condition -> condition.getValues().stream())); } ConditionsLookupService(ConditionsCollector conditionsCollector); Multimap<String, String> conditionsPerDataColumnDescriptor(BaselineExperiment experiment); Multimap<String, String> conditionsPerDataColumnDescriptor(DifferentialExperiment experiment);  }