UTILS { public static boolean isVersionPatternValid(String version) { if (version == null || version.isEmpty()) { return false; } String[] tokens = version.split("\\."); if (tokens.length > 4) { return false; } for (String token : tokens) { try { Integer.parseInt(token); } catch (NumberFormatException e) { return false; } } return true; }  static String cleanPath(IRI iri); static boolean createNew(File file); static boolean delete(File file); static String getOlgaVersion(); static String cleanPackageName(String path); static void validateClassName(String className); static boolean hasOntologyFormatExtension(String fileName); static int weightOfProperties(ZClass zclass); static String cleanPackageName(IRI iri); static void copyFiles(String fileName, String pathSource, String pathDestination); static void copyDirectory(String directoryName, String pathSource, String pathDestination); static String removeLastPoint(String packageName); static boolean isPathValid(String path); static String rebuildPath(String path); static void cleanDirectory(File directory); static boolean deleteDirectory(File dir); static boolean isVersionPatternValid(String version); static int propertyWeight(ZObjectProperty zObjectProperty); static int propertyWeight(ZDataProperty zDataProperty);  }
@Test public void testisVersionPatternValid() { assertFalse(UTILS.isVersionPatternValid("0.0.0.0.0")); }