aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/tests/documentupdatetestcase.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-06-13 15:07:32 +0200
committerHenning Baldersheim <balder@oath.com>2018-06-14 09:41:07 +0200
commitb4f9a3542b2f66041c6704c1f8e554f5c885f2fe (patch)
tree6e88c61278cc8547d86e6d0bc5c2564e484d7747 /document/src/tests/documentupdatetestcase.cpp
parent555b143ec639c9a635d043a6b8d4923c0890d0ac (diff)
Remove unused version from api
Diffstat (limited to 'document/src/tests/documentupdatetestcase.cpp')
-rw-r--r--document/src/tests/documentupdatetestcase.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/document/src/tests/documentupdatetestcase.cpp b/document/src/tests/documentupdatetestcase.cpp
index 1f12e5d03f8..eea5dd4decf 100644
--- a/document/src/tests/documentupdatetestcase.cpp
+++ b/document/src/tests/documentupdatetestcase.cpp
@@ -140,9 +140,7 @@ void testValueUpdate(const UpdateType& update, const DataType &type) {
try{
DocumentTypeRepo repo;
nbostream stream = serialize(update);
- typename UpdateType::UP copy(dynamic_cast<UpdateType*>(
- ValueUpdate::createInstance(repo, type, stream, Document::getNewestSerializationVersion())
- .release()));
+ typename UpdateType::UP copy(dynamic_cast<UpdateType*>(ValueUpdate::createInstance(repo, type, stream).release()));
CPPUNIT_ASSERT_EQUAL(update, *copy);
} catch (std::exception& e) {
std::cerr << "Failed while processing update " << update << "\n";
@@ -184,7 +182,7 @@ DocumentUpdateTest::testSimpleUsage() {
FieldUpdate fieldUpdate(docType->getField("intf"));
fieldUpdate.addUpdate(AssignValueUpdate(IntFieldValue(1)));
nbostream stream = serialize(fieldUpdate);
- FieldUpdate fieldUpdateCopy(repo, *docType, stream, Document::getNewestSerializationVersion());
+ FieldUpdate fieldUpdateCopy(repo, *docType, stream);
CPPUNIT_ASSERT_EQUAL(fieldUpdate, fieldUpdateCopy);
// Test that a document update can be serialized