summaryrefslogtreecommitdiffstats
path: root/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storageapi/src/tests/mbusprot/storageprotocoltest.cpp')
-rw-r--r--storageapi/src/tests/mbusprot/storageprotocoltest.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
index 129488b11ab..4d5a33b1dec 100644
--- a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
+++ b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
@@ -278,18 +278,14 @@ void
StorageProtocolTest::testUpdate51()
{
ScopedName test("testUpdate51");
- document::DocumentUpdate::SP update(
- new document::DocumentUpdate(*_testDoc->getDataType(), _testDoc->getId()));
- std::shared_ptr<document::AssignValueUpdate> assignUpdate(
- new document::AssignValueUpdate(document::IntFieldValue(17)));
+ document::DocumentUpdate::SP update(new document::DocumentUpdate(*_testDoc->getDataType(), _testDoc->getId()));
+ std::shared_ptr<document::AssignValueUpdate> assignUpdate(new document::AssignValueUpdate(document::IntFieldValue(17)));
document::FieldUpdate fieldUpdate(_testDoc->getField("headerval"));
fieldUpdate.addUpdate(*assignUpdate);
update->addUpdate(fieldUpdate);
- update->addFieldPathUpdate(
- document::FieldPathUpdate::CP(
- new document::RemoveFieldPathUpdate(*_testDoc->getDataType(),
- "headerval", "testdoctype1.headerval > 0")));
+ update->addFieldPathUpdate(document::FieldPathUpdate::CP(
+ new document::RemoveFieldPathUpdate("headerval", "testdoctype1.headerval > 0")));
UpdateCommand::SP cmd(new UpdateCommand(_bucket, update, 14));
CPPUNIT_ASSERT_EQUAL(Timestamp(0), cmd->getOldTimestamp());