summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2016-01-22 15:03:33 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2016-01-22 15:03:33 +0900
commit43190868926aec80bfcbc6d7deb82fc67515a005 (patch)
treea908768d1ef1c6a44717b219b790d352515615d2 /org.eclipse.jgit.test/tst
parent8bbd9077e476444589798f84a4a103c2e769d9a2 (diff)
downloadjgit-43190868926aec80bfcbc6d7deb82fc67515a005.tar.gz
jgit-43190868926aec80bfcbc6d7deb82fc67515a005.zip
ConcurrentRepackTest: Don't use deprecated WindowCache.reconfigure
Replace with calls to WindowCacheConfig.install() as mentioned in WindowCache.reconfigure's deprecation notice. Change-Id: Ifdb33501a2209239029c815b1e4e844ea5b56075 Signed-off-by: David Pursehouse <david.pursehouse@sonymobile.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ConcurrentRepackTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ConcurrentRepackTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ConcurrentRepackTest.java
index 1b973ea814..9d7a4822a3 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ConcurrentRepackTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ConcurrentRepackTest.java
@@ -81,15 +81,14 @@ public class ConcurrentRepackTest extends RepositoryTestCase {
public void setUp() throws Exception {
WindowCacheConfig windowCacheConfig = new WindowCacheConfig();
windowCacheConfig.setPackedGitOpenFiles(1);
- WindowCache.reconfigure(windowCacheConfig);
+ windowCacheConfig.install();
super.setUp();
}
@After
public void tearDown() throws Exception {
super.tearDown();
- WindowCacheConfig windowCacheConfig = new WindowCacheConfig();
- WindowCache.reconfigure(windowCacheConfig);
+ new WindowCacheConfig().install();
}
@Test
@@ -206,7 +205,7 @@ public class ConcurrentRepackTest extends RepositoryTestCase {
private static void whackCache() {
final WindowCacheConfig config = new WindowCacheConfig();
config.setPackedGitOpenFiles(1);
- WindowCache.reconfigure(config);
+ config.install();
}
private RevObject parse(final AnyObjectId id)