@Test public void shouldExtractEntityConfigs() { Map<String, DidEntityConfig> entityConfigs = didSchemaParser.getEntityConfigs(); Assert.assertEquals("Should extract 5 entity config for the 5 complexType containing a sectionReference (SLC-GradebookEntry)", 5, entityConfigs.size()); Assert.assertTrue(entityConfigs.containsKey(GRADEBOOKENTRY_TYPE)); DidEntityConfig gbeConfig = entityConfigs.get(GRADEBOOKENTRY_TYPE); Assert.assertNotNull(gbeConfig); Assert.assertNotNull(gbeConfig.getReferenceSources()); List<DidRefSource> refSources = gbeConfig.getReferenceSources(); Assert.assertEquals("entity config should contain a single DidRefSource (section)", 1, refSources.size()); DidRefSource refSource = refSources.get(0); Assert.assertNotNull(refSource); Assert.assertEquals(SECTION_TYPE, refSource.getEntityType()); Assert.assertEquals("body.SectionReference", refSource.getSourceRefPath()); }
public Map<String, DidEntityConfig> getEntityConfigs() { return entityConfigs; }
DidSchemaParser implements ResourceLoaderAware { public Map<String, DidEntityConfig> getEntityConfigs() { return entityConfigs; } }
DidSchemaParser implements ResourceLoaderAware { public Map<String, DidEntityConfig> getEntityConfigs() { return entityConfigs; }  }
DidSchemaParser implements ResourceLoaderAware { public Map<String, DidEntityConfig> getEntityConfigs() { return entityConfigs; }  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, DidEntityConfig> getEntityConfigs() { return entityConfigs; }  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();  }