@Test public void testCircularReference() { String id = "messageJuminCheckList"; Type type = typeLoader.getType(id); Assert.assertEquals(id, type.getId()); Assert.assertEquals(RecordType.class, type.getClass()); RecordType recordType = (RecordType) type; Type bodyFieldType = recordType.getFieldType("body"); Assert.assertEquals(RecordType.class, bodyFieldType.getClass()); RecordType bodyRecordType = (RecordType) bodyFieldType; Type listFieldType = bodyRecordType.getFieldType("list"); Assert.assertEquals(ListType.class, listFieldType.getClass()); Assert.assertEquals(typeLoader.getType("recordJuminCheck"), ((ListType) listFieldType).getElementType()); Type elementType = ((ListType) listFieldType).getElementType(); Assert.assertEquals(RecordType.class, elementType.getClass()); RecordType elementRecordType = (RecordType) elementType; Assert.assertEquals(bodyFieldType, elementRecordType.getFieldType("children")); }
public Type getType(String id) { return getType(id, null); }
TypeLoaderUsingMetadata implements TypeLoader, InitializingBean { public Type getType(String id) { return getType(id, null); } }
TypeLoaderUsingMetadata implements TypeLoader, InitializingBean { public Type getType(String id) { return getType(id, null); } TypeLoaderUsingMetadata();  TypeLoaderUsingMetadata(
			final RecordTypeDefinitionDao recordTypeDefinitionDao); }
TypeLoaderUsingMetadata implements TypeLoader, InitializingBean { public Type getType(String id) { return getType(id, null); } TypeLoaderUsingMetadata();  TypeLoaderUsingMetadata(
			final RecordTypeDefinitionDao recordTypeDefinitionDao); void setRecordTypeDefinitionDao(
			RecordTypeDefinitionDao recordTypeDefinitionDao); void afterPropertiesSet(); Type getType(String id); }
TypeLoaderUsingMetadata implements TypeLoader, InitializingBean { public Type getType(String id) { return getType(id, null); } TypeLoaderUsingMetadata();  TypeLoaderUsingMetadata(
			final RecordTypeDefinitionDao recordTypeDefinitionDao); void setRecordTypeDefinitionDao(
			RecordTypeDefinitionDao recordTypeDefinitionDao); void afterPropertiesSet(); Type getType(String id);  }