GeosupportVersion { public String getVersion() { FileInfo f = findGeoFileInfo(GEO_FILE_TAG); if (f != null && f.getRelease() != null) { return formatVersion(f.getRelease()); } return VERSION_NOT_AVAILABLE; } GeosupportVersion(); String getVersion(); String getRelease(); List<FileInfo> getGeoFileInfo(); ThinFileInfo getThinFileInfo(); FileInfo getGrid1RFileInfo(); FileInfo getAuxsegFileInfo(); FileInfo getTpadFileInfo(); FileInfo getApequivFileInfo(); void setGeoFileInfo(List<FileInfo> geoFileInfo); void setThinFileInfo(ThinFileInfo thinFileInfo); void setGrid1RFileInfo(FileInfo grid1rFileInfo); void setAuxsegFileInfo(FileInfo auxsegFileInfo); void setTpadFileInfo(FileInfo tpadFileInfo); void setApequivFileInfo(FileInfo apequivFileInfo); List<String> getDsNames(); void setDsNames(List<String> dsNames); @Override String toString(); static final String GEO_FILE_TAG; static final String PAD_FILE_TAG; static final String RELEASE_NOT_AVAILABLE; static final String VERSION_NOT_AVAILABLE; }
@Test public void testGetVersion() { assertEquals(GeosupportVersion.VERSION_NOT_AVAILABLE,this.geosupportVersion.getVersion()); addTag(GeosupportVersion.GEO_FILE_TAG, "0132"); assertEquals("13.2", geosupportVersion.getVersion()); }