Search in sources :

Example 1 with AnyTokenSchemaDescriptor

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();
}
Also used : AnyTokenSchemaDescriptor(org.neo4j.internal.schema.AnyTokenSchemaDescriptor) EnumSource(org.junit.jupiter.params.provider.EnumSource) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest)

Aggregations

ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1 EnumSource (org.junit.jupiter.params.provider.EnumSource)1 AnyTokenSchemaDescriptor (org.neo4j.internal.schema.AnyTokenSchemaDescriptor)1