use of com.google.auto.value.extension.memoized.processor.MemoizeExtension in project auto by google.
the class MemoizedMethodSubject method hasError.
void hasError(String error) {
JavaFileObject file = JavaFileObjects.forSourceLines("Value", "import com.google.auto.value.AutoValue;", "import com.google.auto.value.extension.memoized.Memoized;", "", "@AutoValue abstract class Value {", " abstract String string();", actual, "}");
Compilation compilation = javac().withProcessors(new AutoValueProcessor(ImmutableList.of(new MemoizeExtension()))).compile(file);
assertThat(compilation).hadErrorContaining(error).inFile(file).onLineContaining(actual);
}
Aggregations