@Test public void testGetConfigFileFromIncludeFolder() throws Exception { when(sakuliProperties.getConfigFolder()).thenReturn(Paths.get(BaseTest.SAKULI_HOME_FOLDER_PATH + SakuliProperties.CONFIG_FOLDER_APPEDER)); String configFileFromConfigFolder = testling.getConfigFile(); Assert.assertNotNull(configFileFromConfigFolder); Assert.assertTrue(Files.exists(Paths.get(configFileFromConfigFolder))); }
protected String getConfigFile() { Path configFile = Paths.get(sakuliProperties.getConfigFolder() + File.separator + LOG_CONFIG_FILE_NAME); if (Files.exists(configFile)) { return configFile.toAbsolutePath().toString(); } return null; }
LoggerInitializer { protected String getConfigFile() { Path configFile = Paths.get(sakuliProperties.getConfigFolder() + File.separator + LOG_CONFIG_FILE_NAME); if (Files.exists(configFile)) { return configFile.toAbsolutePath().toString(); } return null; } }
LoggerInitializer { protected String getConfigFile() { Path configFile = Paths.get(sakuliProperties.getConfigFolder() + File.separator + LOG_CONFIG_FILE_NAME); if (Files.exists(configFile)) { return configFile.toAbsolutePath().toString(); } return null; }  }
LoggerInitializer { protected String getConfigFile() { Path configFile = Paths.get(sakuliProperties.getConfigFolder() + File.separator + LOG_CONFIG_FILE_NAME); if (Files.exists(configFile)) { return configFile.toAbsolutePath().toString(); } return null; }  @PostConstruct void initLoggerContext(); }
LoggerInitializer { protected String getConfigFile() { Path configFile = Paths.get(sakuliProperties.getConfigFolder() + File.separator + LOG_CONFIG_FILE_NAME); if (Files.exists(configFile)) { return configFile.toAbsolutePath().toString(); } return null; }  @PostConstruct void initLoggerContext();  }