FileIO { public static Match match() { return new AutoValue_FileIO_Match.Builder() .setConfiguration(MatchConfiguration.create(EmptyMatchTreatment.DISALLOW)) .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 testMatchDisallowEmptyDefault() throws IOException { p.apply("Match", FileIO.match().filepattern(tmpFolder.getRoot().getAbsolutePath() + "/*")); thrown.expectCause(isA(FileNotFoundException.class)); p.run(); }
@Test @Category(NeedsRunner.class) public void testMatchDisallowEmptyExplicit() throws IOException { p.apply( FileIO.match() .filepattern(tmpFolder.getRoot().getAbsolutePath() + "/*") .withEmptyMatchTreatment(EmptyMatchTreatment.DISALLOW)); thrown.expectCause(isA(FileNotFoundException.class)); p.run(); }
@Test @Category(NeedsRunner.class) public void testMatchDisallowEmptyNonWildcard() throws IOException { p.apply( FileIO.match() .filepattern(tmpFolder.getRoot().getAbsolutePath() + "/blah") .withEmptyMatchTreatment(EmptyMatchTreatment.ALLOW_IF_WILDCARD)); thrown.expectCause(isA(FileNotFoundException.class)); p.run(); }