new config no longer overrides internal ID of configured types
@@ -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();
