summaryrefslogtreecommitdiffstats
path: root/document/src/tests/documentidtest.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-01-14 14:56:03 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-01-14 14:56:03 +0000
commit80835efd5c385b6f8e19212a7c032e57af1fd73d (patch)
tree8dc193f8ef1db5ac6f41d3b3266c8f87dc06cfd7 /document/src/tests/documentidtest.cpp
parenta772cb05a682fd05fabd0d571417ec7976d0165d (diff)
Remove virtuality of DocumentId.
Diffstat (limited to 'document/src/tests/documentidtest.cpp')
-rw-r--r--document/src/tests/documentidtest.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/document/src/tests/documentidtest.cpp b/document/src/tests/documentidtest.cpp
index a6255cc148a..d3f6e8a8fcd 100644
--- a/document/src/tests/documentidtest.cpp
+++ b/document/src/tests/documentidtest.cpp
@@ -44,16 +44,8 @@ TEST(DocumentIdTest, generateJavaComplianceFile)
TEST(DocumentIdTest, testOutput)
{
DocumentId id("id:ns:news::crawler:http://www.yahoo.com");
-
- std::ostringstream ost;
- ost << id;
- std::string expected("id:ns:news::crawler:http://www.yahoo.com");
- EXPECT_EQ(expected, ost.str());
-
- EXPECT_EQ(vespalib::string(expected), id.toString());
-
- expected = "DocumentId(id = id:ns:news::crawler:http://www.yahoo.com, gid(0xa516a5abd7c7fa26944b72f7))";
- EXPECT_EQ(expected, static_cast<Printable&>(id).toString(true));
+ vespalib::string expected("id:ns:news::crawler:http://www.yahoo.com");
+ EXPECT_EQ(expected, id.toString());
}
namespace {