@Test public void testGetConfigFileFromClasspath() throws Exception { String configFileFromClasspath = testling.getConfigFileFromClasspath(); Assert.assertNull(configFileFromClasspath); }
protected String getConfigFileFromClasspath() { try { return ResourceHelper.getClasspathResource( getClass(), "/" + LOG_CONFIG_FILE_NAME, "unexpected error by resolving the '" + LOG_CONFIG_FILE_NAME + "' from classpath, now try to resolve it from the include folder." ) .toAbsolutePath() .toString(); } catch (NoSuchFileException e) { logger.error(e.getMessage(), e); return null; } }
LoggerInitializer { protected String getConfigFileFromClasspath() { try { return ResourceHelper.getClasspathResource( getClass(), "/" + LOG_CONFIG_FILE_NAME, "unexpected error by resolving the '" + LOG_CONFIG_FILE_NAME + "' from classpath, now try to resolve it from the include folder." ) .toAbsolutePath() .toString(); } catch (NoSuchFileException e) { logger.error(e.getMessage(), e); return null; } } }
LoggerInitializer { protected String getConfigFileFromClasspath() { try { return ResourceHelper.getClasspathResource( getClass(), "/" + LOG_CONFIG_FILE_NAME, "unexpected error by resolving the '" + LOG_CONFIG_FILE_NAME + "' from classpath, now try to resolve it from the include folder." ) .toAbsolutePath() .toString(); } catch (NoSuchFileException e) { logger.error(e.getMessage(), e); return null; } }  }
LoggerInitializer { protected String getConfigFileFromClasspath() { try { return ResourceHelper.getClasspathResource( getClass(), "/" + LOG_CONFIG_FILE_NAME, "unexpected error by resolving the '" + LOG_CONFIG_FILE_NAME + "' from classpath, now try to resolve it from the include folder." ) .toAbsolutePath() .toString(); } catch (NoSuchFileException e) { logger.error(e.getMessage(), e); return null; } }  @PostConstruct void initLoggerContext(); }
LoggerInitializer { protected String getConfigFileFromClasspath() { try { return ResourceHelper.getClasspathResource( getClass(), "/" + LOG_CONFIG_FILE_NAME, "unexpected error by resolving the '" + LOG_CONFIG_FILE_NAME + "' from classpath, now try to resolve it from the include folder." ) .toAbsolutePath() .toString(); } catch (NoSuchFileException e) { logger.error(e.getMessage(), e); return null; } }  @PostConstruct void initLoggerContext();  }