@Test public void annotationFileSplitsPropertiesOnSeparator() throws Exception { addTemporaryFile("annotations", "Homo_sapiens.ensgene.tsv", ImmutableList.of( new String[]{"ensgene", "synonym"}, new String[]{"id", "v1@@v2"})); assertThat( subject.getAnnotationFiles() .flatMap(BioentityPropertiesSource.AnnotationFile::get) .collect(toList()), containsInAnyOrder( new BioentityProperty("id", "Homo_sapiens", "ensgene", "id"), new BioentityProperty("id", "Homo_sapiens", "synonym", "v1"), new BioentityProperty("id", "Homo_sapiens", "synonym", "v2"))); }
Stream<AnnotationFile> getAnnotationFiles() { return getBioentityPropertyFiles(annotationsDirPath, ANNOTATION_FILE_NAME_PATTERN, AnnotationFile::new); }
BioentityPropertiesSource { Stream<AnnotationFile> getAnnotationFiles() { return getBioentityPropertyFiles(annotationsDirPath, ANNOTATION_FILE_NAME_PATTERN, AnnotationFile::new); } }
BioentityPropertiesSource { Stream<AnnotationFile> getAnnotationFiles() { return getBioentityPropertyFiles(annotationsDirPath, ANNOTATION_FILE_NAME_PATTERN, AnnotationFile::new); } BioentityPropertiesSource(Path annotationsDirPath,
                                     Path arrayDesignsDirPath,
                                     Path reactomeDirPath,
                                     SpeciesFactory speciesFactory); }
BioentityPropertiesSource { Stream<AnnotationFile> getAnnotationFiles() { return getBioentityPropertyFiles(annotationsDirPath, ANNOTATION_FILE_NAME_PATTERN, AnnotationFile::new); } BioentityPropertiesSource(Path annotationsDirPath,
                                     Path arrayDesignsDirPath,
                                     Path reactomeDirPath,
                                     SpeciesFactory speciesFactory);  }
BioentityPropertiesSource { Stream<AnnotationFile> getAnnotationFiles() { return getBioentityPropertyFiles(annotationsDirPath, ANNOTATION_FILE_NAME_PATTERN, AnnotationFile::new); } BioentityPropertiesSource(Path annotationsDirPath,
                                     Path arrayDesignsDirPath,
                                     Path reactomeDirPath,
                                     SpeciesFactory speciesFactory);   }