matcher.matches(diagnosticHelper.getDiagnostics()));
}
@Test
public void fileWithWarning() throws Exception {
compilerBuilder.report(new ErrorProneScanner(new NonAtomicVolatileUpdate()));
compiler = compilerBuilder.build();
Result exitCode = compiler.compile(compiler.fileManager().sources(getClass(),
"bugpatterns/NonAtomicVolatileUpdatePositiveCases.java"));
outputStream.flush();
assertThat(outputStream.toString(), exitCode, is(Result.OK));