Search in sources :

Example 1 with ForeignAccess

use of com.oracle.truffle.api.interop.ForeignAccess in project graal by oracle.

the class ForeignAccessToStringTest method checkRegularFactory.

@Test
public void checkRegularFactory() {
    ForeignAccess fa = ForeignAccess.create(new SimpleTestingFactory());
    assertEquals("ForeignAccess[" + ForeignAccessToStringTest.class.getName() + "$SimpleTestingFactory]", fa.toString());
}
Also used : ForeignAccess(com.oracle.truffle.api.interop.ForeignAccess) Test(org.junit.Test)

Example 2 with ForeignAccess

use of com.oracle.truffle.api.interop.ForeignAccess in project graal by oracle.

the class ForeignAccessToStringTest method check10Factory.

@Test
public void check10Factory() {
    ForeignAccess fa = ForeignAccess.create(new Simple10TestingFactory(), null);
    assertEquals("ForeignAccess[" + ForeignAccessToStringTest.class.getName() + "$Simple10TestingFactory]", fa.toString());
}
Also used : ForeignAccess(com.oracle.truffle.api.interop.ForeignAccess) Test(org.junit.Test)

Aggregations

ForeignAccess (com.oracle.truffle.api.interop.ForeignAccess)2 Test (org.junit.Test)2