use of com.oracle.truffle.api.object.Layout in project graal by oracle.
the class ObjectTypeTest method objectTypeRespondsToIsNull.
@Test
public void objectTypeRespondsToIsNull() {
final Layout layout = Layout.newLayout().build();
final Shape rootShape = layout.createShape(OBJECT_TYPE);
final DynamicObject obj = rootShape.newInstance();
final boolean is = JavaInteropTest.isNull(obj);
assertFalse("It is not null", is);
}
use of com.oracle.truffle.api.object.Layout in project graal by oracle.
the class ObjectTypeTest method objectTypeRespondsToIsBoxed.
@Test
public void objectTypeRespondsToIsBoxed() {
final Layout layout = Layout.newLayout().build();
final Shape rootShape = layout.createShape(OBJECT_TYPE);
final DynamicObject obj = rootShape.newInstance();
final boolean is = JavaInteropTest.isBoxed(obj);
assertFalse("It is not boxed", is);
}
Aggregations