use of com.oracle.truffle.api.impl.TVMCI in project graal by oracle.
the class TruffleRuntimeTest method testGetTVMCI.
@Test
public void testGetTVMCI() {
TruffleRuntime runtime = Truffle.getRuntime();
TVMCI tvmci = runtime.getCapability(TVMCI.class);
assertNotNull("Truffle Virtual Machine Compiler Interface not found", tvmci);
assertEquals("GraalTVMCI", tvmci.getClass().getSimpleName());
abstract class TVMCISubclass extends TVMCI {
}
TVMCISubclass subclass = runtime.getCapability(TVMCISubclass.class);
assertNull("Expected null return value for TVMCI subclass", subclass);
}
Aggregations