FileIO { public static MatchAll matchAll() { return new AutoValue_FileIO_MatchAll.Builder() .setConfiguration(MatchConfiguration.create(EmptyMatchTreatment.ALLOW_IF_WILDCARD)) .build(); }  static Match match(); static MatchAll matchAll(); static ReadMatches readMatches(); static Write<Void, InputT> write(); static Write<DestT, InputT> writeDynamic();  }
@Test @Category(NeedsRunner.class) public void testMatchAllDisallowEmptyExplicit() throws IOException { p.apply(Create.of(tmpFolder.getRoot().getAbsolutePath() + "/*")) .apply(FileIO.matchAll().withEmptyMatchTreatment(EmptyMatchTreatment.DISALLOW)); thrown.expectCause(isA(FileNotFoundException.class)); p.run(); }
@Test @Category(NeedsRunner.class) public void testMatchAllDisallowEmptyNonWildcard() throws IOException { p.apply(Create.of(tmpFolder.getRoot().getAbsolutePath() + "/blah")) .apply(FileIO.matchAll().withEmptyMatchTreatment(EmptyMatchTreatment.ALLOW_IF_WILDCARD)); thrown.expectCause(isA(FileNotFoundException.class)); p.run(); }