jgit/org.eclipse.jgit.test/tst/org/eclipse/jgit
Masaya Suzuki edd8ad4d04 Use FS#lastModified instead of File#lastModified
This fixes the tests failed in JDK8.

FS uses java.nio API to get file attributes. The timestamps obtained
from that API are more precise than the ones from
java.io.File#lastModified() since Java8.

This difference accidentally makes JGit detect newly added files as
smudged. Use the precised timestamp to avoid this false positive.

Bug: 500058
Change-Id: I9e587583c85cb6efa7562ad6c5f26577869a2e7c
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
2016-08-24 09:07:08 +02:00
..
api Enhance ResetCommand to allow disabling reflog update 2016-08-17 08:56:03 -04:00
attributes Add Attribute Macro Expansion 2016-02-11 17:08:49 +01:00
diff PatchIdDiffFormatterTest: Open Git and PatchIdDiffFormatter in try-with-resource 2016-02-12 14:07:53 +09:00
dircache DirCacheBasicTest: Open ObjectInserter.Formatter in try-with-resource 2016-02-15 17:19:17 +09:00
events Move base test classes to the junit bundle for reuse for Java 7 tests 2013-02-04 07:24:56 +01:00
fnmatch Added characters to be escaped in file name patterns 2013-04-06 18:23:33 +02:00
gitrepo Fix javadoc errors and unused imports introduced by ddd0fe25 2016-06-01 10:17:29 +02:00
ignore Fix unused throws CorruptObjectException from addTree 2016-01-21 17:07:50 +01:00
internal/storage Use FS#lastModified instead of File#lastModified 2016-08-24 09:07:08 +02:00
junit Repository: Introduce exactRef and findRef, deprecate getRef 2015-11-25 14:05:20 -08:00
lib Merge branch 'stable-4.4' 2016-07-12 17:12:41 +02:00
merge Use FS#lastModified instead of File#lastModified 2016-08-24 09:07:08 +02:00
nls Move console classes to pgm bundle 2015-02-10 09:14:48 +01:00
notes NoteMapTest: Open TreeWalk instances in try-with-resource 2016-02-12 14:12:25 +09:00
patch Suppress boxing warnings where we know they are ok 2012-09-22 01:21:00 +02:00
revplot Revert "CommitBuilder should check for duplicate parents" 2015-03-18 16:26:05 -07:00
revwalk RevCommitListTest: Open Git and RevWalk in try-with-resource 2016-02-05 17:26:03 +09:00
storage/file Remove hardcoded target/trash from test cases 2013-11-01 19:57:47 -07:00
submodule SubmoduleAddTest: Open Git in try-with-resource 2016-02-05 14:11:54 +09:00
symlinks SymlinksTest: Open git and TreeWalk in try-with-resource 2016-02-05 14:05:22 +09:00
test/resources Move SampleDataRepositoryTestCase to org.eclipse.jgit.test 2013-11-24 05:27:14 -05:00
transport RefSpecs: allow construction of weird wildcarded RefSpecs 2016-07-25 10:10:06 -07:00
treewalk Use FS#lastModified instead of File#lastModified 2016-08-24 09:07:08 +02:00
util Add EOL stream type detection to TreeWalk 2016-03-07 17:24:32 +01:00