use of com.enonic.xp.data.PropertyTree in project xp by enonic.
the class ScriptValueTranslatorTest method arrayTest.
@Test
public void arrayTest() throws Exception {
final PropertyTree properties = getPropertyTree("array");
assertNotNull(properties.getLong("myArray"));
assertNotNull(properties.getLong("myArray", 1));
assertNotNull(properties.getLong("myArray", 2));
validateType(properties, "myArray", ValueTypes.LONG);
}
use of com.enonic.xp.data.PropertyTree in project xp by enonic.
the class ScriptValueTranslatorTest method reference.
@Test
public void reference() throws Exception {
final PropertyTree properties = getPropertyTree("reference");
assertNotNull(properties.getReference("myReference"));
validateType(properties, "myReference", ValueTypes.REFERENCE);
}
use of com.enonic.xp.data.PropertyTree in project xp by enonic.
the class ScriptValueTranslatorTest method instant.
@Test
public void instant() throws Exception {
final PropertyTree properties = getPropertyTree("instant");
assertNotNull(properties.getInstant("myInstant"));
validateType(properties, "myInstant", ValueTypes.DATE_TIME);
}
use of com.enonic.xp.data.PropertyTree in project xp by enonic.
the class ScriptValueTranslatorTest method booleanTest.
@Test
public void booleanTest() throws Exception {
final PropertyTree properties = getPropertyTree("boolean");
assertNotNull(properties.getBoolean("myBoolean"));
validateType(properties, "myBoolean", ValueTypes.BOOLEAN);
}
use of com.enonic.xp.data.PropertyTree in project xp by enonic.
the class ScriptValueTranslatorTest method localDateTime.
@Test
public void localDateTime() throws Exception {
final PropertyTree properties = getPropertyTree("localDateTime");
assertNotNull(properties.getLocalDateTime("myLocalDateTime"));
validateType(properties, "myLocalDateTime", ValueTypes.LOCAL_DATE_TIME);
}
Aggregations