I tried writing some tests for my active annotations (using 2.9.0.v201511170433), but the "compile" method described in the documentation does not seem to exist.
package com.iar.jsonrpc.tests
import com.iar.jsonrpc.cpp.JsonRpcCppInterface
import org.eclipse.xtend.core.compiler.batch.XtendCompilerTester
import org.junit.Test
class AnnotationProcessorTest {
extension XtendCompilerTester compilerTester = XtendCompilerTester.
newXtendCompilerTester(JsonRpcCppInterface.classLoader)
@Test
def void testSimple() {
compilerTester.compile(
'''
@JsonRpcCppInterface
interface HelloWorld {
def int foo()
}
''') [
]
}
}
This results in a compilation error: "The method compile(String, (Object)=>Object) is undefined for the type XtendCompilerTester".
Am I missing something?
/Jesper