diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2018-05-27 11:31:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-27 11:31:48 +0200 |
commit | d418eaf692ad0950fd41ac91248738893c7b02a4 (patch) | |
tree | b136939a0ec773ea9a533b339f2868a8c830e90c /config-model/src/test/java/com/yahoo/searchdefinition/derived | |
parent | c1b5e51d5a122dcfcb7a4481e91f58224490833d (diff) |
Revert "Support that array of struct field is derived into array attributes."
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/derived')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/derived/AttributeListTestCase.java | 16 | ||||
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java | 5 |
2 files changed, 0 insertions, 21 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/derived/AttributeListTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/derived/AttributeListTestCase.java index 6f48d8a7e86..86f30ba3c11 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/derived/AttributeListTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/AttributeListTestCase.java @@ -68,20 +68,4 @@ public class AttributeListTestCase extends SearchDefinitionTestCase { assertTrue(!attributes.hasNext()); } - @Test - public void array_of_struct_field_is_derived_into_array_attributes() throws IOException, ParseException { - Search search = SearchBuilder.buildFromFile("src/test/derived/array_of_struct_attribute/test.sd"); - Iterator<Attribute> attributes = new AttributeFields(search).attributeIterator(); - - assertAttribute("elem_array.name", Attribute.Type.STRING, Attribute.CollectionType.ARRAY, attributes.next()); - assertAttribute("elem_array.weight", Attribute.Type.INTEGER, Attribute.CollectionType.ARRAY, attributes.next()); - assertTrue(!attributes.hasNext()); - } - - private static void assertAttribute(String name, Attribute.Type type, Attribute.CollectionType collection, Attribute attr) { - assertEquals(name, attr.getName()); - assertEquals(type, attr.getType()); - assertEquals(collection, attr.getCollectionType()); - } - } diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java index dc2d3b7cea1..4600f6ae4c6 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExportingTestCase.java @@ -139,9 +139,4 @@ public class ExportingTestCase extends AbstractExportingTestCase { assertCorrectDeriving("tensor"); } - @Test - public void testArrayOfStructAttribute() throws IOException, ParseException { - assertCorrectDeriving("array_of_struct_attribute"); - } - } |