Christian Halstrick
3226e35db8
Fix junit tests under windows when the platform is explicitly changed
SystemReader used a chached ObjectChecker which was instantiated only once. But in case of unit tests where we can change the platform dynamically (e.g. MockSystemReader.setWindows()) this is wrong and caused DirCacheCheckoutMaliciousPathTest. testMaliciousAbsoluteCurDrivePathWindowsOnUnix() to fail. This change allows user of SystemReader to force the creation of a new ObjectChecker. MockSystemReader.setWindows() and .setUnix() make use of this feature. Change-Id: I87458d1dc63c1f5c18979f972b1c1f0d670a9ed8 |
9 yıl önce | |
---|---|---|
.. | ||
Assert.java | Suppress boxing warnings where we know they are ok | 11 yıl önce |
JGitTestUtil.java | Fix RecursiveMerger's internal use of merge to find a merge base | 9 yıl önce |
LocalDiskRepositoryTestCase.java | Fix LocalDiskRepositoryTestCase to create correct type of repos | 9 yıl önce |
MockSystemReader.java | Fix junit tests under windows when the platform is explicitly changed | 9 yıl önce |
RepositoryTestCase.java | Fix RecursiveMerger's internal use of merge to find a merge base | 9 yıl önce |
TestRepository.java | JGit 3.0: move internal classes into an internal subpackage | 11 yıl önce |
TestRng.java | Move TestRng to our JUnit helper package | 14 yıl önce |