test_class.declarator: tmpFolder= new TemporaryFolder()
test_class.modifier: @Rule
    public
test_class.original_string: @Rule
    public TemporaryFolder tmpFolder= new TemporaryFolder();
test_class.type: TemporaryFolder
test_class.var_name: tmpFolder
test_class.file: kilt-core/src/test/java/de/poiu/kilt/reformatting/KiltReformatterTest.java
test_class.identifier: KiltReformatterTest
test_case.body: @Test
    public void testReorder_noFiles() throws IOException {
  
      // - preparation
  
      final FileMatcher fileMatcher= new FileMatcher(Paths.get(""), new String[]{""}, new String[]{""});
  
      // - execution
  
      new KiltReformatter()
        .reorderByKey(fileMatcher, AttachCommentsTo.NEXT_PROPERTY, UTF_8);
  
      //TODO: Verify that warning message gets logged?
  
      // - verification
    }
test_case.class_method_signature: KiltReformatterTest.testReorder_noFiles()
test_case.full_signature: @Test public void testReorder_noFiles()
test_case.identifier: testReorder_noFiles
test_case.invocations: get reorderByKey
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReorder_noFiles()
focal_class.declarator: LOGGER= LogManager.getLogger()
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER= LogManager.getLogger();
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: APRON_OPTIONS= ApronOptions.create()
          .with(MissingKeyAction.NOTHING)
          .with(UnicodeHandling.DO_NOTHING)
focal_class.modifier: private static final
focal_class.original_string: private static final ApronOptions APRON_OPTIONS= ApronOptions.create()
          .with(MissingKeyAction.NOTHING)
          .with(UnicodeHandling.DO_NOTHING);
focal_class.type: ApronOptions
focal_class.var_name: APRON_OPTIONS
focal_class.file: kilt-core/src/main/java/de/poiu/kilt/reformatting/KiltReformatter.java
focal_class.identifier: KiltReformatter
focal_class.class_method_signature: KiltReformatter.reformat(final FileMatcher fileMatcher, final String formatString, final boolean reformatKeyAndValue, final Charset charset)
focal_class.full_signature: public void reformat(final FileMatcher fileMatcher, final String formatString, final boolean reformatKeyAndValue, final Charset charset)
focal_class.identifier: reformat
focal_class.modifiers: public
focal_class.parameters: (final FileMatcher fileMatcher, final String formatString, final boolean reformatKeyAndValue, final Charset charset)
focal_class.return: void
focal_class.signature: void reformat(final FileMatcher fileMatcher, final String formatString, final boolean reformatKeyAndValue, final Charset charset)
focal_class.class_method_signature: KiltReformatter.reorderByKey(final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset)
focal_class.full_signature: public void reorderByKey(final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset)
focal_class.identifier: reorderByKey
focal_class.modifiers: public
focal_class.parameters: (final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset)
focal_class.return: void
focal_class.signature: void reorderByKey(final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset)
focal_class.class_method_signature: KiltReformatter.reorderByTemplate(final File template, final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset)
focal_class.full_signature: public void reorderByTemplate(final File template, final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset)
focal_class.identifier: reorderByTemplate
focal_class.modifiers: public
focal_class.parameters: (final File template, final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset)
focal_class.return: void
focal_class.signature: void reorderByTemplate(final File template, final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset)
focal_method.body: public void reorderByKey(final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset) {
      Require.nonNull(fileMatcher);
      Require.nonNull(attachCommentsTo);
      Require.nonNull(charset);
  
      final Reformatter reformatter= new Reformatter(
        ReformatOptions.create()
          .with(charset)
          .with(attachCommentsTo));
  
      final Set<File> propertyFiles= fileMatcher.findMatchingFiles();
      LOGGER.log(Level.INFO, "Reordering entries in the following files: {}", propertyFiles);
  
      propertyFiles.stream().forEach(_f -> {
        final PropertyFile pf= PropertyFile.from(_f, charset);
        reformatter.reorderByKey(pf);
        pf.overwrite(_f, APRON_OPTIONS.with(charset));
      });
    }
focal_method.class_method_signature: KiltReformatter.reorderByKey(final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset)
focal_method.full_signature: public void reorderByKey(final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset)
focal_method.identifier: reorderByKey
focal_method.invocations: nonNull nonNull nonNull with with create findMatchingFiles log forEach stream from reorderByKey overwrite with
focal_method.modifiers: public
focal_method.parameters: (final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset)
focal_method.return: void
focal_method.signature: void reorderByKey(final FileMatcher fileMatcher, final AttachCommentsTo attachCommentsTo, final Charset charset)