QuestionableFilesSuggester implements BundleEntrySuggester, ProjectTreeSuggester { @Override public ImmutableList<Suggestion> processBundleZipEntry(BundleContext context, FileData fileData) { if (fileData.getSize() < SMALL_FILE_SIZE_LIMIT || isStandardBundleFile(fileData)) { return ImmutableList.of(); } return processFileEntry(fileData); } QuestionableFilesSuggester(); @Override ImmutableList<Suggestion> processBundleZipEntry(BundleContext context, FileData fileData); @Override ImmutableList<Suggestion> processProjectEntry(GradleContext context, FileData fileData);  }
@Test public void invalidSmallFile() { FileData fileData = FakeFileData.builder(ROOT_MISC_FILE).setSize(SMALL_FILE_SIZE).build(); assertThat( new QuestionableFilesSuggester() .processBundleZipEntry(BundleContext.create(1, false), fileData)) .isEmpty(); }