aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/attribute
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-10-13 12:34:35 +0200
committerTor Egge <Tor.Egge@online.no>2022-10-13 12:34:35 +0200
commit2b309b0a16f2867509040080face61cfae14f902 (patch)
tree917c78167aa7b0b053ee87571da872bacf9e2d7b /searchcore/src/tests/proton/attribute
parent55273728967bc6edea0185f062c93a3e61e6cf66 (diff)
Add field value builders to EmptyDocBuilder.
Diffstat (limited to 'searchcore/src/tests/proton/attribute')
-rw-r--r--searchcore/src/tests/proton/attribute/attribute_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_test.cpp b/searchcore/src/tests/proton/attribute/attribute_test.cpp
index ea264c506a6..78f2d6bbe01 100644
--- a/searchcore/src/tests/proton/attribute/attribute_test.cpp
+++ b/searchcore/src/tests/proton/attribute/attribute_test.cpp
@@ -262,7 +262,7 @@ TEST_F(AttributeWriterTest, handles_put)
{ // document with single value & multi value attribute
auto doc = edb.make_document("id:ns:searchdocument::2");
doc->setValue("a1", IntFieldValue(10));
- ArrayFieldValue int_array(edb.get_data_type("Array<Int>"));
+ auto int_array = edb.make_array("a2");
int_array.add(IntFieldValue(20));
int_array.add(IntFieldValue(30));
doc->setValue("a2",int_array);
@@ -284,7 +284,7 @@ TEST_F(AttributeWriterTest, handles_put)
{ // replace existing document
auto doc = edb.make_document("id:ns:searchdocument::2");
doc->setValue("a1", IntFieldValue(100));
- ArrayFieldValue int_array(edb.get_data_type("Array<Int>"));
+ auto int_array = edb.make_array("a2");
int_array.add(IntFieldValue(200));
int_array.add(IntFieldValue(300));
int_array.add(IntFieldValue(400));