use of org.neo4j.kernel.api.index.NodeUpdates in project neo4j by neo4j.
the class PropertyPhysicalToLogicalConverterTest method shouldConvertInlinedRemovedProperty.
@Test
public void shouldConvertInlinedRemovedProperty() throws Exception {
// GIVEN
int key = 10;
int value = 12341;
PropertyRecord before = propertyRecord(property(key, value));
PropertyRecord after = propertyRecord();
// WHEN
NodeUpdates update = convert(none, none, change(before, after));
// THEN
NodeUpdates expected = NodeUpdates.forNode(0).removed(key, value).build();
assertEquals(expected, update);
}
use of org.neo4j.kernel.api.index.NodeUpdates in project neo4j by neo4j.
the class PropertyPhysicalToLogicalConverterTest method shouldConvertDynamicInlinedRemovedProperty.
@Test
public void shouldConvertDynamicInlinedRemovedProperty() throws Exception {
// GIVEN
int key = 10;
PropertyRecord before = propertyRecord(property(key, longString));
PropertyRecord after = propertyRecord();
// WHEN
NodeUpdates update = convert(none, none, change(before, after));
// THEN
NodeUpdates expected = NodeUpdates.forNode(0).removed(key, longString).build();
assertEquals(expected, update);
}
use of org.neo4j.kernel.api.index.NodeUpdates in project neo4j by neo4j.
the class PropertyPhysicalToLogicalConverterTest method shouldNotConvertInlinedAddedProperty.
@Test
public void shouldNotConvertInlinedAddedProperty() throws Exception {
// GIVEN
long key = 10;
int value = 12345;
PropertyRecord before = propertyRecord();
PropertyRecord after = propertyRecord(property(key, value));
// WHEN
NodeUpdates updates = convert(none, none, change(before, after));
// THEN
assertFalse(updates.hasIndexingAppropriateUpdates());
}
Aggregations