test_class.declarator: sep = File.separator
test_class.modifier: private final
test_class.original_string: private final String sep = File.separator;
test_class.type: String
test_class.var_name: sep
test_class.declarator: localDataFolder =
          System.getProperty("user.dir") + sep
              + "src" + sep
              + "test" + sep
              + "resources" + sep
test_class.modifier: private final
test_class.original_string: private final String localDataFolder =
          System.getProperty("user.dir") + sep
              + "src" + sep
              + "test" + sep
              + "resources" + sep;
test_class.type: String
test_class.var_name: localDataFolder
test_class.declarator: resourcesFolder = new File(localDataFolder)
test_class.modifier: private final
test_class.original_string: private final File resourcesFolder = new File(localDataFolder);
test_class.type: File
test_class.var_name: resourcesFolder
test_class.file: gazeplay-commons/src/test/java/net/gazeplay/commons/configuration/ConfigurationSourceTest.java
test_class.identifier: ConfigurationSourceTest
test_case.body: @Test
      void givenPropertiesFileNotFound_shouldCreateDefaultProperties() {
          Configuration result = ConfigurationSource.createFromPropertiesResource(new File(localDataFolder, "wrong.properties"));
  
          assertEquals(500, result.getFixationLength());
      }
test_case.class_method_signature: ConfigurationSourceTest.givenPropertiesFileNotFound_shouldCreateDefaultProperties()
test_case.full_signature: @Test void givenPropertiesFileNotFound_shouldCreateDefaultProperties()
test_case.identifier: givenPropertiesFileNotFound_shouldCreateDefaultProperties
test_case.invocations: createFromPropertiesResource assertEquals getFixationLength
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void givenPropertiesFileNotFound_shouldCreateDefaultProperties()
focal_class.declarator: defaultProfileConfigFile = new File(GazePlayDirectories.getGazePlayFolder(), "GazePlay.properties")
focal_class.modifier: private static final
focal_class.original_string: private static final File defaultProfileConfigFile = new File(GazePlayDirectories.getGazePlayFolder(), "GazePlay.properties");
focal_class.type: File
focal_class.var_name: defaultProfileConfigFile
focal_class.file: gazeplay-commons/src/main/java/net/gazeplay/commons/configuration/ConfigurationSource.java
focal_class.identifier: ConfigurationSource
focal_class.class_method_signature: ConfigurationSource.getSpecificProfileConfigPath(final String profileId)
focal_class.full_signature: private static File getSpecificProfileConfigPath(final String profileId)
focal_class.identifier: getSpecificProfileConfigPath
focal_class.modifiers: private static
focal_class.parameters: (final String profileId)
focal_class.return: File
focal_class.signature: File getSpecificProfileConfigPath(final String profileId)
focal_class.class_method_signature: ConfigurationSource.createFromDefaultProfile()
focal_class.full_signature: public static Configuration createFromDefaultProfile()
focal_class.identifier: createFromDefaultProfile
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Configuration
focal_class.signature: Configuration createFromDefaultProfile()
focal_class.class_method_signature: ConfigurationSource.createFromProfile(final String profileId)
focal_class.full_signature: public static Configuration createFromProfile(final String profileId)
focal_class.identifier: createFromProfile
focal_class.modifiers: public static
focal_class.parameters: (final String profileId)
focal_class.return: Configuration
focal_class.signature: Configuration createFromProfile(final String profileId)
focal_class.class_method_signature: ConfigurationSource.createFromPropertiesResource(final File propertiesFile)
focal_class.full_signature: public static Configuration createFromPropertiesResource(final File propertiesFile)
focal_class.identifier: createFromPropertiesResource
focal_class.modifiers: public static
focal_class.parameters: (final File propertiesFile)
focal_class.return: Configuration
focal_class.signature: Configuration createFromPropertiesResource(final File propertiesFile)
focal_class.class_method_signature: ConfigurationSource.loadProperties(final File propertiesFile)
focal_class.full_signature: private static Properties loadProperties(final File propertiesFile)
focal_class.identifier: loadProperties
focal_class.modifiers: private static
focal_class.parameters: (final File propertiesFile)
focal_class.return: Properties
focal_class.signature: Properties loadProperties(final File propertiesFile)
focal_method.body: public static Configuration createFromPropertiesResource(final File propertiesFile) {
          Properties properties;
  
          try {
              log.info("Loading Properties from : {}", propertiesFile);
              properties = loadProperties(propertiesFile);
              log.info("Properties loaded : {}", properties);
          } catch (final IOException e) {
              log.error("Failure while loading Properties file {}", propertiesFile, e);
              properties = new Properties();
          }
  
          final ApplicationConfig applicationConfig = ConfigFactory.create(ApplicationConfig.class, properties);
          return new Configuration(propertiesFile, applicationConfig);
      }
focal_method.class_method_signature: ConfigurationSource.createFromPropertiesResource(final File propertiesFile)
focal_method.full_signature: public static Configuration createFromPropertiesResource(final File propertiesFile)
focal_method.identifier: createFromPropertiesResource
focal_method.invocations: info loadProperties info error create
focal_method.modifiers: public static
focal_method.parameters: (final File propertiesFile)
focal_method.return: Configuration
focal_method.signature: Configuration createFromPropertiesResource(final File propertiesFile)