use of org.neo4j.kernel.impl.store.record.PropertyKeyTokenRecord in project neo4j by neo4j.
the class PropertyKeyTokenRecordCheckTest method shouldNotReportAnythingForRecordThatDoesNotReferenceADynamicBlock.
@Test
public void shouldNotReportAnythingForRecordThatDoesNotReferenceADynamicBlock() throws Exception {
// given
PropertyKeyTokenRecord key = inUse(new PropertyKeyTokenRecord(42));
// when
ConsistencyReport.PropertyKeyTokenConsistencyReport report = check(key);
// then
verifyNoMoreInteractions(report);
}
use of org.neo4j.kernel.impl.store.record.PropertyKeyTokenRecord in project neo4j by neo4j.
the class PropertyKeyTokenRecordCheckTest method shouldReportEmptyName.
@Test
public void shouldReportEmptyName() throws Exception {
// given
PropertyKeyTokenRecord key = inUse(new PropertyKeyTokenRecord(42));
DynamicRecord name = addKeyName(inUse(new DynamicRecord(6)));
key.setNameId((int) name.getId());
// when
ConsistencyReport.PropertyKeyTokenConsistencyReport report = check(key);
// then
verify(report).emptyName(name);
verifyNoMoreInteractions(report);
}
use of org.neo4j.kernel.impl.store.record.PropertyKeyTokenRecord in project neo4j by neo4j.
the class PropertyRecordCheckTest method shouldReportArrayRecordNotInUse.
@Test
public void shouldReportArrayRecordNotInUse() throws Exception {
// given
PropertyRecord property = inUse(new PropertyRecord(42));
PropertyKeyTokenRecord key = add(inUse(new PropertyKeyTokenRecord(6)));
DynamicRecord value = add(notInUse(array(new DynamicRecord(1001))));
PropertyBlock block = propertyBlock(key, value);
property.addPropertyBlock(block);
// when
ConsistencyReport.PropertyConsistencyReport report = check(property);
// then
verify(report).arrayNotInUse(block, value);
verifyNoMoreInteractions(report);
}
use of org.neo4j.kernel.impl.store.record.PropertyKeyTokenRecord in project neo4j by neo4j.
the class PropertyRecordCheckTest method shouldReportEmptyArrayRecord.
@Test
public void shouldReportEmptyArrayRecord() throws Exception {
// given
PropertyRecord property = inUse(new PropertyRecord(42));
PropertyKeyTokenRecord key = add(inUse(new PropertyKeyTokenRecord(6)));
DynamicRecord value = add(inUse(array(new DynamicRecord(1001))));
PropertyBlock block = propertyBlock(key, value);
property.addPropertyBlock(block);
// when
ConsistencyReport.PropertyConsistencyReport report = check(property);
// then
verify(report).arrayEmpty(block, value);
verifyNoMoreInteractions(report);
}
use of org.neo4j.kernel.impl.store.record.PropertyKeyTokenRecord in project neo4j by neo4j.
the class PropertyRecordCheckTest method shouldReportEmptyStringRecord.
@Test
public void shouldReportEmptyStringRecord() throws Exception {
// given
PropertyRecord property = inUse(new PropertyRecord(42));
PropertyKeyTokenRecord key = add(inUse(new PropertyKeyTokenRecord(6)));
DynamicRecord value = add(inUse(string(new DynamicRecord(1001))));
PropertyBlock block = propertyBlock(key, value);
property.addPropertyBlock(block);
// when
ConsistencyReport.PropertyConsistencyReport report = check(property);
// then
verify(report).stringEmpty(block, value);
verifyNoMoreInteractions(report);
}
Aggregations