Search in sources :

Example 1 with ArrayOfLimitedValuesProperty

use of nl.knaw.huygens.timbuctoo.core.dto.property.ArrayOfLimitedValuesProperty in project timbuctoo by HuygensING.

the class TinkerPopPropertyConverterTest method toReturnsTheNameOfAnArrayOfLimitedValuesProperty.

@Test
public void toReturnsTheNameOfAnArrayOfLimitedValuesProperty() throws Exception {
    TinkerPopPropertyConverter instance = new TinkerPopPropertyConverter(null);
    ArrayOfLimitedValuesProperty property = new ArrayOfLimitedValuesProperty("name", "[]");
    Tuple<String, Object> value = instance.to(property);
    assertThat(value.getLeft(), is("name"));
}
Also used : TinkerPopPropertyConverter(nl.knaw.huygens.timbuctoo.database.tinkerpop.conversion.TinkerPopPropertyConverter) ArrayOfLimitedValuesProperty(nl.knaw.huygens.timbuctoo.core.dto.property.ArrayOfLimitedValuesProperty) Test(org.junit.Test)

Aggregations

ArrayOfLimitedValuesProperty (nl.knaw.huygens.timbuctoo.core.dto.property.ArrayOfLimitedValuesProperty)1 TinkerPopPropertyConverter (nl.knaw.huygens.timbuctoo.database.tinkerpop.conversion.TinkerPopPropertyConverter)1 Test (org.junit.Test)1