summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2021-12-08 10:36:55 +0000
committerArne H Juul <arnej@yahooinc.com>2021-12-08 10:38:46 +0000
commit8874fa45b2932bd30685488e625a76c04b015e20 (patch)
tree0210f950cd09f4fa30194e5632432729ae8573d5 /document
parent059de966639b63a111cea402266a58d2dd915862 (diff)
new config no longer overrides internal ID of configured types
Diffstat (limited to 'document')
-rw-r--r--document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java b/document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java
index 4040f3455da..eb5249227be 100644
--- a/document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java
+++ b/document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java
@@ -190,7 +190,7 @@ public class DocumentTypeManagerTestCase {
Field arrayfloat = type.getField("arrayfloat");
ArrayDataType dataType = (ArrayDataType) arrayfloat.getDataType();
- assertTrue(dataType.getCode() == 99);
+ // assertTrue(dataType.getCode() == 99);
assertTrue(dataType.getValueClass().equals(Array.class));
assertTrue(dataType.getNestedType().getCode() == 1);
assertTrue(dataType.getNestedType().getValueClass().equals(FloatFieldValue.class));
@@ -198,9 +198,9 @@ public class DocumentTypeManagerTestCase {
Field arrayarrayfloat = type.getField("arrayarrayfloat");
ArrayDataType subType = (ArrayDataType) arrayarrayfloat.getDataType();
- assertTrue(subType.getCode() == 4003);
+ // assertTrue(subType.getCode() == 4003);
assertTrue(subType.getValueClass().equals(Array.class));
- assertTrue(subType.getNestedType().getCode() == 99);
+ // assertTrue(subType.getNestedType().getCode() == 99);
assertTrue(subType.getNestedType().getValueClass().equals(Array.class));
ArrayDataType subSubType = (ArrayDataType) subType.getNestedType();
assertTrue(subSubType.getNestedType().getCode() == 1);
@@ -215,7 +215,7 @@ public class DocumentTypeManagerTestCase {
DocumentType customtypes = manager.getDocumentType(new DataTypeName("customtypes"));
assertNull(banana.getField("newfield"));
- assertEquals(new Field("arrayfloat", 9489, new ArrayDataType(DataType.FLOAT, 99)), customtypes.getField("arrayfloat"));
+ assertEquals(new Field("arrayfloat", 9489, new ArrayDataType(DataType.FLOAT)), customtypes.getField("arrayfloat"));
var sub = DocumentTypeManagerConfigurer.configure(manager, "file:src/test/document/documentmanager.updated.cfg");
sub.close();