summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-01-30 17:59:47 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2017-01-30 17:59:47 +0000
commit1ec378554baa9948618aa02f8e334c214a349273 (patch)
treead59172b3dae9122011065967c246214311f8730 /document
parent6e5aecc0541ae752906d49c0ae0ce03e5767d822 (diff)
Remove v6 tests.
Diffstat (limited to 'document')
-rw-r--r--document/src/tests/documenttestcase.cpp1
-rw-r--r--document/src/tests/repo/documenttyperepo_test.cpp13
2 files changed, 0 insertions, 14 deletions
diff --git a/document/src/tests/documenttestcase.cpp b/document/src/tests/documenttestcase.cpp
index d517a871700..29ccefc1d86 100644
--- a/document/src/tests/documenttestcase.cpp
+++ b/document/src/tests/documenttestcase.cpp
@@ -766,7 +766,6 @@ void DocumentTest::testReadSerializedAllVersions()
std::vector<TestDoc> tests;
tests.push_back(TestDoc(TEST_PATH("data/document-cpp-v8-uncompressed.dat"), 8));
tests.push_back(TestDoc(TEST_PATH("data/document-cpp-v7-uncompressed.dat"), 7));
- tests.push_back(TestDoc(TEST_PATH("data/serializev6.dat"), 6));
tests.push_back(TestDoc(jpath + "document-java-v8-uncompressed.dat", 8));
for (uint32_t i=0; i<tests.size(); ++i) {
int version = tests[i]._createdVersion;
diff --git a/document/src/tests/repo/documenttyperepo_test.cpp b/document/src/tests/repo/documenttyperepo_test.cpp
index d0e0dcf9429..b3ff4ce098e 100644
--- a/document/src/tests/repo/documenttyperepo_test.cpp
+++ b/document/src/tests/repo/documenttyperepo_test.cpp
@@ -373,19 +373,6 @@ TEST("requireThatAnnotationTypesCanBeConfigured") {
EXPECT_EQUAL(DataType::T_STRING, a_type->getDataType()->getId());
}
-TEST("requireThatFieldIdV6IsDifferentFromV7") {
- DocumenttypesConfigBuilderHelper builder;
- builder.document(doc_type_id, type_name,
- Struct(header_name),
- Struct(body_name).addField(field_name, DataType::T_INT));
- DocumentTypeRepo repo(builder.config());
-
- const StructDataType &s = repo.getDocumentType(type_name)->getFieldsType();
- ASSERT_EQUAL(1u, s.getFieldCount());
- const Field &field = s.getField(field_name);
- ASSERT_TRUE(field.getId(7) != field.getId(6));
-}
-
TEST("requireThatDocumentsCanUseOtherDocumentTypes") {
DocumenttypesConfigBuilderHelper builder;
builder.document(doc_type_id + 1, type_name_2,