use of org.neo4j.internal.schema.RelationTypeSchemaDescriptor in project neo4j by neo4j.
the class SchemaDescriptorTest method shouldCreateRelTypeDescriptors.
@Test
void shouldCreateRelTypeDescriptors() {
RelationTypeSchemaDescriptor relTypeDesc;
relTypeDesc = SchemaDescriptor.forRelType(REL_TYPE_ID, 1);
assertThat(relTypeDesc.getRelTypeId()).isEqualTo(REL_TYPE_ID);
assertThat(relTypeDesc.entityType()).isEqualTo(EntityType.RELATIONSHIP);
assertThat(relTypeDesc.propertySchemaType()).isEqualTo(PropertySchemaType.COMPLETE_ALL_TOKENS);
assertArray(relTypeDesc.getPropertyIds(), 1);
relTypeDesc = SchemaDescriptor.forRelType(REL_TYPE_ID, 1, 2, 3);
assertThat(relTypeDesc.getRelTypeId()).isEqualTo(REL_TYPE_ID);
assertArray(relTypeDesc.getPropertyIds(), 1, 2, 3);
}
Aggregations