@Test public void getVersion_None_ShouldReturnVersion() throws CelloException { String version = EXUtils.getVersion(); Matcher m = Utils.SEM_VER_PATTERN.matcher(version); assertTrue(m.matches()); }
public static String getVersion() throws CelloException { String rtn = null; final Properties properties = new Properties(); try { properties.load( EXUtils.class.getClassLoader().getResourceAsStream("cello-export.properties")); } catch (IOException e) { throw new CelloException("Unable to get version."); } rtn = properties.getProperty("org.cellocad.v2.cello-export.version"); return rtn; }
EXUtils { public static String getVersion() throws CelloException { String rtn = null; final Properties properties = new Properties(); try { properties.load( EXUtils.class.getClassLoader().getResourceAsStream("cello-export.properties")); } catch (IOException e) { throw new CelloException("Unable to get version."); } rtn = properties.getProperty("org.cellocad.v2.cello-export.version"); return rtn; } }
EXUtils { public static String getVersion() throws CelloException { String rtn = null; final Properties properties = new Properties(); try { properties.load( EXUtils.class.getClassLoader().getResourceAsStream("cello-export.properties")); } catch (IOException e) { throw new CelloException("Unable to get version."); } rtn = properties.getProperty("org.cellocad.v2.cello-export.version"); return rtn; }  }
EXUtils { public static String getVersion() throws CelloException { String rtn = null; final Properties properties = new Properties(); try { properties.load( EXUtils.class.getClassLoader().getResourceAsStream("cello-export.properties")); } catch (IOException e) { throw new CelloException("Unable to get version."); } rtn = properties.getProperty("org.cellocad.v2.cello-export.version"); return rtn; }  static String getVersion(); static URL getResource(final String resource); static String getResourceAsString(final String resource); }
EXUtils { public static String getVersion() throws CelloException { String rtn = null; final Properties properties = new Properties(); try { properties.load( EXUtils.class.getClassLoader().getResourceAsStream("cello-export.properties")); } catch (IOException e) { throw new CelloException("Unable to get version."); } rtn = properties.getProperty("org.cellocad.v2.cello-export.version"); return rtn; }  static String getVersion(); static URL getResource(final String resource); static String getResourceAsString(final String resource);  }