use of org.neo4j.internal.schema.AnyTokenSchemaDescriptor in project neo4j by neo4j.
the class SchemaDescriptorTest method shouldCreateAllTokenDescriptors.
@ParameterizedTest
@EnumSource(EntityType.class)
void shouldCreateAllTokenDescriptors(EntityType entityType) {
AnyTokenSchemaDescriptor allLabelsDesc = SchemaDescriptor.forAnyEntityTokens(entityType);
assertThat(allLabelsDesc.entityType()).isEqualTo(entityType);
assertThat(allLabelsDesc.propertySchemaType()).isEqualTo(PropertySchemaType.ENTITY_TOKENS);
assertThat(allLabelsDesc.getEntityTokenIds()).isEmpty();
assertThat(allLabelsDesc.getPropertyIds()).isEmpty();
}
Aggregations