DssDataReader extends DataReader { public static Set<String> getVariables(String pathToDss){ HecDSSFileAccess.setDefaultDSSFileName(pathToDss); HecDssCatalog catalog = new HecDssCatalog(); String[] paths = catalog.getCatalog(false, null); return new HashSet<>(Arrays.asList(paths)); } DssDataReader(DataReaderBuilder builder); @Override List<VortexData> getDtos(); static Set<String> getVariables(String pathToDss); @Override int getDtoCount(); @Override VortexData getDto(int idx);  }
@Test void GetVariablesFromDss6ReturnsSetOfStrings() { String pathToDss = new File(getClass().getResource("/normalizer/prism.dss").getFile()).toString(); Set<String> variables = DssDataReader.getVariables(pathToDss); assertEquals(2, variables.size()); }
@Test void GetVariablesFromDss7ReturnsSetOfStrings(){ String pathToDss = new File(getClass().getResource("/normalizer/qpe.dss").getFile()).toString(); Set<String> variables = DssDataReader.getVariables(pathToDss); assertEquals(49, variables.size()); }