@Test public void oddFilesSkipped() throws Exception { addTemporaryFile( "annotations", "not-a-right-name.tsv", ImmutableList.of()); addTemporaryFile( "annotations", "Homo_sapiens.ensprotein.tsv", ImmutableList.of()); addTemporaryFile( "annotations", "Homo_sapiens.enstranscript.tsv", ImmutableList.of()); assertThat(subject.getAnnotationFiles().count(), is(0L)); addTemporaryFile( "annotations", "Homo_sapiens.ensgene.tsv", ImmutableList.of()); assertThat(subject.getAnnotationFiles().count(), is(1L)); addTemporaryFile( "annotations", "Sleazy_worm.wbpsgene.tsv", ImmutableList.of()); assertThat(subject.getAnnotationFiles().count(), is(2L)); }
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);   }