]> source.dussan.org Git - jgit.git/commit
DiffFormatterTest: Add a test to confirm the default rename detection settings 97/165497/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 26 Jun 2020 02:23:47 +0000 (11:23 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 26 Jun 2020 02:24:48 +0000 (11:24 +0900)
commit14509f4cbbc9d99fd487ee8462dce07eb11909b5
tree2fd578fd2d5347657a65cec9bf46ce765f513365
parentd1577f79c4933eefc2cb9691993793d914a8745a
DiffFormatterTest: Add a test to confirm the default rename detection settings

Add a test that confirms:

- No rename detector is initialized by default

- Rename detector is initialized after calling setDetectRenames(true)

- Rename limit and rename score have the default values 400 and
  60, respectively. Note that there are no constants for these values
  so the test hard codes them.

Change-Id: I327e2b348a40ef67d8a184e5ab09f4e9ab573e1c
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java