/** * Handler error and log statements. * * @param clazzName * class name. */ private void onError(String clazzName) { logger.error("Duplicate name:" + clazzName + "Please provide entity with complete package name."); throw new ApplicationLoaderException("Duplicate name:" + clazzName + "Please provide entity with complete package name"); }
throw new ApplicationLoaderException("Duplicate named/native query with name:" + queryName + "found! Already there is a query with same name:" + namedNativeQueries.get(queryName));
@Test public void testApplicationLoaderException() { ApplicationLoaderException exception = new ApplicationLoaderException("Error with string"); Assert.assertNotNull(exception); }