use of uk.gov.gchq.gaffer.data.element.Properties in project Gaffer by gchq.
the class AbstractAccumuloElementConverterTest method shouldSerialiseAndDeSerialiseBetweenPropertyAndValueMissingMiddleProperty.
@Test
public void shouldSerialiseAndDeSerialiseBetweenPropertyAndValueMissingMiddleProperty() throws AccumuloElementConversionException {
Properties properties = new Properties();
properties.put(AccumuloPropertyNames.PROP_1, 60);
properties.put(AccumuloPropertyNames.PROP_3, 299);
properties.put(AccumuloPropertyNames.PROP_4, 10);
properties.put(AccumuloPropertyNames.COUNT, 8);
final Value value = converter.getValueFromProperties(TestGroups.EDGE, properties);
final Properties deSerialisedProperties = converter.getPropertiesFromValue(TestGroups.EDGE, value);
assertEquals(60, deSerialisedProperties.get(AccumuloPropertyNames.PROP_1));
assertEquals(299, deSerialisedProperties.get(AccumuloPropertyNames.PROP_3));
assertEquals(10, deSerialisedProperties.get(AccumuloPropertyNames.PROP_4));
assertEquals(8, deSerialisedProperties.get(AccumuloPropertyNames.COUNT));
}
Aggregations