@Test public void testValidateClassName() { try { UTILS.validateClassName("class"); } catch (InvalidClassNameException e) { assertEquals(e.getMessage(), "class Invalid class name, it doesn't follow the convention."); } }
public static void validateClassName(String className) throws InvalidClassNameException { if (className == null || className.isEmpty() || !isTokenValid(className)) { throw new InvalidClassNameException(className); } }
UTILS { public static void validateClassName(String className) throws InvalidClassNameException { if (className == null || className.isEmpty() || !isTokenValid(className)) { throw new InvalidClassNameException(className); } } }
UTILS { public static void validateClassName(String className) throws InvalidClassNameException { if (className == null || className.isEmpty() || !isTokenValid(className)) { throw new InvalidClassNameException(className); } }  }
UTILS { public static void validateClassName(String className) throws InvalidClassNameException { if (className == null || className.isEmpty() || !isTokenValid(className)) { throw new InvalidClassNameException(className); } }  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); }
UTILS { public static void validateClassName(String className) throws InvalidClassNameException { if (className == null || className.isEmpty() || !isTokenValid(className)) { throw new InvalidClassNameException(className); } }  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);  }