use of com.oracle.truffle.api.object.DynamicObject 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.DynamicObject 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);
}
use of com.oracle.truffle.api.object.DynamicObject in project graal by oracle.
the class BasicTest method testGetDefault.
@Test
public void testGetDefault() {
final DynamicObject object = LAYOUT.createBasicTest(14);
Assert.assertEquals(14, LAYOUT.getValue(object));
}
use of com.oracle.truffle.api.object.DynamicObject in project graal by oracle.
the class FinalPropertiesTest method testGetDefault.
@Test
public void testGetDefault() {
final DynamicObject object = LAYOUT.createFinalPropertiesTest(14);
Assert.assertEquals(14, LAYOUT.getValue(object));
}
use of com.oracle.truffle.api.object.DynamicObject in project graal by oracle.
the class FinalPropertiesTest method testCreate.
@Test
public void testCreate() {
final DynamicObject object = LAYOUT.createFinalPropertiesTest(14);
Assert.assertNotNull(object);
}
Aggregations