File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ fun `test my annotation processor`() {
3131 // Classes from the test environment are visible to the compiled sources
3232 val testEnvClass = TestEnvClass()
3333 }
34+ }
3435 """ )
3536
3637 val javaSource = SourceFile .new(" JClass.java" , """
@@ -49,7 +50,7 @@ Configure compilation
4950 // pass your own instance of an annotation processor
5051 annotationProcessors = listOf (MyAnnotationProcessor ())
5152
52- inheritClasspath = true
53+ inheritClassPath = true
5354 messageOutputStream = System .out // see diagnostics in real time
5455 }.compile()
5556```
@@ -62,7 +63,7 @@ Assert results
6263
6364 // Load compiled classes and inspect generated code through reflection
6465 val kClazz = result.classloader.loadClass(" KClass" )
65- assertThat(kClazz).hasDeclaredMethod (" foo" )
66+ assertThat(kClazz).hasDeclaredMethods (" foo" )
6667}
6768```
6869
You can’t perform that action at this time.
0 commit comments