@Test public void shouldExtractSimpleRefConfigs() { Map<String, DidRefConfig> refConfigs = didSchemaParser.getRefConfigs(); Assert.assertEquals("Should extract 9 ref configs for the SLC section and edOrg referenceTypes", 9, refConfigs.size()); Assert.assertTrue(refConfigs.containsKey(SECTION_TYPE)); Assert.assertTrue(refConfigs.containsKey(EDORG_TYPE)); DidRefConfig schoolRefConfig = refConfigs.get(EDORG_TYPE); Assert.assertNotNull(schoolRefConfig); Assert.assertEquals(EDORG_TYPE, schoolRefConfig.getEntityType()); Assert.assertNotNull(schoolRefConfig.getKeyFields()); Assert.assertEquals("nested schoolId ref should contain 1 key field", 1, schoolRefConfig.getKeyFields().size()); KeyFieldDef schoolStateOrgId = schoolRefConfig.getKeyFields().get(0); Assert.assertNotNull(schoolStateOrgId); Assert.assertEquals(SCHOOL_KEYFIELD, schoolStateOrgId.getKeyFieldName()); Assert.assertEquals("EducationalOrgIdentity.StateOrganizationId._value", schoolStateOrgId.getValueSource()); Assert.assertNull("school stateOrgId should not contain a nested reference", schoolStateOrgId.getRefConfig()); }
public Map<String, DidRefConfig> getRefConfigs() { return refConfigs; }
DidSchemaParser implements ResourceLoaderAware { public Map<String, DidRefConfig> getRefConfigs() { return refConfigs; } }
DidSchemaParser implements ResourceLoaderAware { public Map<String, DidRefConfig> getRefConfigs() { return refConfigs; }  }
DidSchemaParser implements ResourceLoaderAware { public Map<String, DidRefConfig> getRefConfigs() { return refConfigs; }  String getExtensionXsdLocation(); void setExtensionXsdLocation(String entensionXsdLocation); String getExtensionXsdParentLocation(); void setExtensionXsdParentLocation(String extensionXsdParentLocation); String getXsdParentLocation(); void setXsdParentLocation(String xsdParentLocation); String getXsdLocation(); void setXsdLocation(String xsdLocation); Map<String, List<DidNaturalKey>> getNaturalKeys(); void setNaturalKeys(Map<String, List<DidNaturalKey>> naturalKeys); @Override void setResourceLoader(ResourceLoader resourceLoader); @PostConstruct void setup(); Map<String, DidRefConfig> getRefConfigs(); Map<String, DidEntityConfig> getEntityConfigs(); Map<String, List<DidNaturalKey>> extractNaturalKeys(); }
DidSchemaParser implements ResourceLoaderAware { public Map<String, DidRefConfig> getRefConfigs() { return refConfigs; }  String getExtensionXsdLocation(); void setExtensionXsdLocation(String entensionXsdLocation); String getExtensionXsdParentLocation(); void setExtensionXsdParentLocation(String extensionXsdParentLocation); String getXsdParentLocation(); void setXsdParentLocation(String xsdParentLocation); String getXsdLocation(); void setXsdLocation(String xsdLocation); Map<String, List<DidNaturalKey>> getNaturalKeys(); void setNaturalKeys(Map<String, List<DidNaturalKey>> naturalKeys); @Override void setResourceLoader(ResourceLoader resourceLoader); @PostConstruct void setup(); Map<String, DidRefConfig> getRefConfigs(); Map<String, DidEntityConfig> getEntityConfigs(); Map<String, List<DidNaturalKey>> extractNaturalKeys();  }