@Test
  public void noInjectApiButNoAutoFactoryEither() {
    Compiler compiler =
        Compiler.javac()
            .withProcessors(new AutoFactoryProcessor())
            .withClasspath(ImmutableList.of());
    JavaFileObject file =
        JavaFileObjects.forSourceString("test.Foo", "package test; public class Foo {}");
    Compilation compilation = compiler.compile(file);
    assertThat(compilation).succeededWithoutWarnings();
    assertThat(compilation).generatedFile(StandardLocation.CLASS_OUTPUT, "test", "Foo.class");
  }
AutoFactoryProcessor shouldn't complain about the absence of {@code javax.inject} if there are
no {@code @AutoFactory} classes being compiled. Its {@code init} will be called and will see
the problem, but will say nothing.
factory/src/test/java/com/google/auto/factory/processor/AutoFactoryProcessorNegativeTest.java