.report(new ErrorProneScanner(new NondisableableChecker()))
.build();
List<JavaFileObject> sources =
compiler.fileManager().sources(getClass(), "CommandLineFlagTestFile.java");
Result exitCode = compiler.compile(
new String[]{"-Xepdisable:NondisableableChecker"}, sources);
assertThat(exitCode, is(Result.CMDERR));
assertThat(testStderr.toString(),
containsString("error-prone check NondisableableChecker may not be disabled"));
}