@Test public void testParseWithFolderStructureConfig() throws Exception { PxwebIndicatorsParser parser = getParser("config2folderstructWithIndicatorKey.json"); List<StatisticalIndicator> indicators = parser.parse(getLayers()); int expectedCount = 62; String expectedName = "Taajama-aste, %"; String expectedId = "kuntien_avainluvut_2017_aikasarja.px::M408"; assertEquals("Should find " + expectedCount + " indicators", expectedCount, indicators.size()); assertEquals("Should find " + expectedName + " as first indicator name", expectedName, indicators.get(0).getName(PropertyUtil.getDefaultLanguage())); assertEquals("Should find " + expectedId + " as first indicator id", expectedId, indicators.get(0).getId()); assertEquals("Should find one dimension", 1, indicators.get(0).getDataModel().getDimensions().size()); assertEquals("Should find dimension 'vuosi'", "Vuosi", indicators.get(0).getDataModel().getDimension("vuosi").getName()); }
public List<StatisticalIndicator> parse(List<DatasourceLayer> layers) { return parse(null, layers); }
PxwebIndicatorsParser { public List<StatisticalIndicator> parse(List<DatasourceLayer> layers) { return parse(null, layers); } }
PxwebIndicatorsParser { public List<StatisticalIndicator> parse(List<DatasourceLayer> layers) { return parse(null, layers); } PxwebIndicatorsParser(PxwebConfig config); }
PxwebIndicatorsParser { public List<StatisticalIndicator> parse(List<DatasourceLayer> layers) { return parse(null, layers); } PxwebIndicatorsParser(PxwebConfig config); List<StatisticalIndicator> parse(List<DatasourceLayer> layers); }
PxwebIndicatorsParser { public List<StatisticalIndicator> parse(List<DatasourceLayer> layers) { return parse(null, layers); } PxwebIndicatorsParser(PxwebConfig config); List<StatisticalIndicator> parse(List<DatasourceLayer> layers);  }