Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Move files with mappings #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavrilov-Ivan committed Jul 1, 2021
1 parent 1225ccb commit f70ba2a
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,55 +40,55 @@ public static Stream<Arguments> provideCommonTestCases() {
.expectedEntityName("test_SimpleRootEntity")
.expectedIndexName("search_index_test_simplerootentity")
.expectedEntityClass(TestSimpleRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/common/test_mapping_include_all_local_properties")
.pathToFileWithExpectedMapping("index_definition/common/test_mapping_include_all_local_properties")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("Specified properties are included to mapping if supported")
.indexDefinitionClass(TestIncludeSpecificLocalPropertiesIndexDefinition.class)
.expectedEntityName("test_SimpleRootEntity")
.expectedIndexName("search_index_test_simplerootentity")
.expectedEntityClass(TestSimpleRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/common/test_mapping_include_specific_local_properties")
.pathToFileWithExpectedMapping("index_definition/common/test_mapping_include_specific_local_properties")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("It's possible to exclude some properties from wildcard coverage")
.indexDefinitionClass(TestIncludeAllLocalPropertiesWithExclusionIndexDefinition.class)
.expectedEntityName("test_SimpleRootEntity")
.expectedIndexName("search_index_test_simplerootentity")
.expectedEntityClass(TestSimpleRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/common/test_mapping_include_all_local_properties_with_exclusion")
.pathToFileWithExpectedMapping("index_definition/common/test_mapping_include_all_local_properties_with_exclusion")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("Multiple annotation on a single method are supported")
.indexDefinitionClass(TestMultiAnnotationInclusionIndexDefinition.class)
.expectedEntityName("test_SimpleRootEntity")
.expectedIndexName("search_index_test_simplerootentity")
.expectedEntityClass(TestSimpleRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/common/test_mapping_multi_inclusion")
.pathToFileWithExpectedMapping("index_definition/common/test_mapping_multi_inclusion")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("Multiple annotated methods are supported")
.indexDefinitionClass(TestMultiMethodInclusionIndexDefinition.class)
.expectedEntityName("test_SimpleRootEntity")
.expectedIndexName("search_index_test_simplerootentity")
.expectedEntityClass(TestSimpleRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/common/test_mapping_multi_inclusion")
.pathToFileWithExpectedMapping("index_definition/common/test_mapping_multi_inclusion")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("Programmatic mapping is correct")
.indexDefinitionClass(TestProgrammaticMappingIndexDefinition.class)
.expectedEntityName("test_SimpleRootEntity")
.expectedIndexName("search_index_test_simplerootentity")
.expectedEntityClass(TestSimpleRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/common/test_mapping_programmatic")
.pathToFileWithExpectedMapping("index_definition/common/test_mapping_programmatic")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("Programmatic mapping ignores annotations")
.indexDefinitionClass(TestProgrammaticMappingWithAnnotationsIndexDefinition.class)
.expectedEntityName("test_SimpleRootEntity")
.expectedIndexName("search_index_test_simplerootentity")
.expectedEntityClass(TestSimpleRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/common/test_mapping_programmatic_with_annotations")
.pathToFileWithExpectedMapping("index_definition/common/test_mapping_programmatic_with_annotations")
.build()
)
);
Expand All @@ -101,39 +101,39 @@ public static Stream<Arguments> provideReferenceTestCases() {
.expectedEntityName("test_RootEntity")
.expectedIndexName("search_index_test_rootentity")
.expectedEntityClass(TestRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/reference/test_mapping_include_one_to_one_reference_property")
.pathToFileWithExpectedMapping("index_definition/reference/test_mapping_include_one_to_one_reference_property")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("Nested wildcard includes all supported nested properties")
.indexDefinitionClass(TestIncludeAllOneToOneRefNestedPropertiesIndexDefinition.class)
.expectedEntityName("test_RootEntity")
.expectedIndexName("search_index_test_rootentity")
.expectedEntityClass(TestRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/reference/test_mapping_include_all_one_to_one_ref_nested_properties")
.pathToFileWithExpectedMapping("index_definition/reference/test_mapping_include_all_one_to_one_ref_nested_properties")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("Specified nested properties are included to mapping if supported")
.indexDefinitionClass(TestIncludeSpecificOneToOneRefNestedPropertiesIndexDefinition.class)
.expectedEntityName("test_RootEntity")
.expectedIndexName("search_index_test_rootentity")
.expectedEntityClass(TestRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/reference/test_mapping_include_specific_one_to_one_ref_nested_properties")
.pathToFileWithExpectedMapping("index_definition/reference/test_mapping_include_specific_one_to_one_ref_nested_properties")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("Sub-nested wildcard includes all supported sub-nested properties")
.indexDefinitionClass(TestIncludeAllOneToOneSubRefNestedPropertiesIndexDefinition.class)
.expectedEntityName("test_RootEntity")
.expectedIndexName("search_index_test_rootentity")
.expectedEntityClass(TestRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/reference/test_mapping_include_all_one_to_one_sub_ref_nested_properties")
.pathToFileWithExpectedMapping("index_definition/reference/test_mapping_include_all_one_to_one_sub_ref_nested_properties")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("Specified sub-nested properties are included to mapping if supported")
.indexDefinitionClass(TestIncludeSpecificOneToOneSubRefNestedPropertiesIndexDefinition.class)
.expectedEntityName("test_RootEntity")
.expectedIndexName("search_index_test_rootentity")
.expectedEntityClass(TestRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/reference/test_mapping_include_specific_one_to_one_sub_ref_nested_properties")
.pathToFileWithExpectedMapping("index_definition/reference/test_mapping_include_specific_one_to_one_sub_ref_nested_properties")
.build()
)
);
Expand All @@ -146,15 +146,15 @@ public static Stream<Arguments> provideFileTestCases() {
.expectedEntityName("test_FileRootEntity")
.expectedIndexName("search_index_test_filerootentity")
.expectedEntityClass(TestFileRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/file/test_mapping_include_local_file_property")
.pathToFileWithExpectedMapping("index_definition/file/test_mapping_include_local_file_property")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("File content field is still present in mapping with disabled content indexing")
.indexDefinitionClass(TestIncludeLocalFilePropertyWithoutContentIndexDefinition.class)
.expectedEntityName("test_FileRootEntity")
.expectedIndexName("search_index_test_filerootentity")
.expectedEntityClass(TestFileRootEntity.class)
.pathToFileWithExpectedMapping("test_support/index_definition/file/test_mapping_include_local_file_property")
.pathToFileWithExpectedMapping("index_definition/file/test_mapping_include_local_file_property")
.build()
)
);
Expand All @@ -167,23 +167,23 @@ public static Stream<Arguments> provideEmbeddedTestCases() {
.expectedEntityName("test_RootEntityWithEmbedded")
.expectedIndexName("search_index_test_rootentitywithembedded")
.expectedEntityClass(TestRootEntityWithEmbedded.class)
.pathToFileWithExpectedMapping("test_support/index_definition/embedded/test_mapping_include_all_embeddable_properties")
.pathToFileWithExpectedMapping("index_definition/embedded/test_mapping_include_all_embeddable_properties")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("Embedded-level wildcard includes all supported embeddable properties")
.indexDefinitionClass(TestIncludeAllEmbeddablePropertiesIndexDefinition.class)
.expectedEntityName("test_RootEntityWithEmbedded")
.expectedIndexName("search_index_test_rootentitywithembedded")
.expectedEntityClass(TestRootEntityWithEmbedded.class)
.pathToFileWithExpectedMapping("test_support/index_definition/embedded/test_mapping_include_all_embeddable_properties")
.pathToFileWithExpectedMapping("index_definition/embedded/test_mapping_include_all_embeddable_properties")
.build()
),
Arguments.of(AnnotatedIndexDefinitionProcessorTestCase.builder("Specified embeddable properties are included to mapping if supported")
.indexDefinitionClass(TestIncludeSpecificEmbeddablePropertyIndexDefinition.class)
.expectedEntityName("test_RootEntityWithEmbedded")
.expectedIndexName("search_index_test_rootentitywithembedded")
.expectedEntityClass(TestRootEntityWithEmbedded.class)
.pathToFileWithExpectedMapping("test_support/index_definition/embedded/test_mapping_include_specific_embeddable_property")
.pathToFileWithExpectedMapping("index_definition/embedded/test_mapping_include_specific_embeddable_property")
.build()
)
);
Expand Down

0 comments on commit f70ba2a

Please sign in to comment.