@ParameterizedTest
    @EnumSource(SchemaVersion.class)
    public void testSetEnum_singleEnumValue(SchemaVersion schemaVersion) {
        this.collector.setEnum(this.definitionNode, Collections.singletonList("A"), this.generateContext(schemaVersion, Option.ENUM_KEYWORD_FOR_SINGLE_VALUES));
        JsonNode enumNode = this.definitionNode.get(SchemaKeyword.TAG_ENUM.forVersion(schemaVersion));
        Assertions.assertNotNull(enumNode);
        Assertions.assertTrue(enumNode.isArray());
        Assertions.assertEquals(1, enumNode.size());
        JsonNode singleValueItem = enumNode.get(0);
        Assertions.assertNotNull(singleValueItem);
        Assertions.assertTrue(singleValueItem.isTextual());
        Assertions.assertEquals("A", singleValueItem.textValue());
    }
Helper method for creating the test context for a given JSON Schema version.

@param schemaVersion designated JSON Schema version
@return schema generation context for the given JSON Schema version
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/AttributeCollectorTest.java