StaticJavaResource buggyResource = new StaticJavaResource("Buggy",
buggyCode);
TypeOracleTestingUtils.buildStandardTypeOracleWith(logger,
Collections.<Resource> emptySet(),
CompilationStateTestBase.getGeneratedUnits(buggyResource));
logger.assertCorrectLogEntries();
}
private void shouldGenerateNoError(StringBuilder buggyCode) {
shouldGenerateError(buggyCode, (String[]) null);
}