aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-08-30 16:32:30 +0200
committerLuca Milanesio <luca.milanesio@gmail.com>2024-09-03 09:44:26 +0000
commit3682611cef41ade46cf5ac194f0674b46367a395 (patch)
tree26085d31c1e3a11ed45fb97bf6f9c28d0b7241c7 /org.eclipse.jgit.test
parentd478dd40d55c27da91ffbb9f7e98b9bb11afe629 (diff)
downloadjgit-3682611cef41ade46cf5ac194f0674b46367a395.tar.gz
jgit-3682611cef41ade46cf5ac194f0674b46367a395.zip
Remove deprecated LocalDiskRepositoryTestCase#create(boolean,boolean)
Change-Id: I9eff2d405b5302753ff2ec1d0eab431bdba69fe0
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryCacheTest.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryCacheTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryCacheTest.java
index cec69c4998..2a6551787f 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryCacheTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryCacheTest.java
@@ -159,8 +159,8 @@ public class RepositoryCacheTest extends RepositoryTestCase {
@Test
public void testRepositoryUsageCountWithRegisteredRepository()
throws IOException {
- @SuppressWarnings({"resource", "deprecation"}) // We are testing the close() method
- Repository repo = createRepository(false, false);
+ @SuppressWarnings("resource") // We are testing the close() method
+ Repository repo = createRepository(false);
assertEquals(1, repo.useCnt.get());
RepositoryCache.register(repo);
assertEquals(1, repo.useCnt.get());
@@ -207,10 +207,8 @@ public class RepositoryCacheTest extends RepositoryTestCase {
@Test
public void testRepositoryUnregisteringWhenExpired() throws Exception {
- @SuppressWarnings({"resource", "deprecation"}) // We are testing the close() method
- Repository repoA = createRepository(true, false);
- @SuppressWarnings({"resource", "deprecation"}) // We are testing the close() method
- Repository repoB = createRepository(true, false);
+ Repository repoA = createRepository(true);
+ Repository repoB = createRepository(true);
Repository repoC = createBareRepository();
RepositoryCache.register(repoA);
RepositoryCache.register(repoB);
@@ -243,8 +241,7 @@ public class RepositoryCacheTest extends RepositoryTestCase {
@Test
public void testReconfigure() throws InterruptedException, IOException {
- @SuppressWarnings({"resource", "deprecation"}) // We are testing the close() method
- Repository repo = createRepository(false, false);
+ Repository repo = createRepository(false);
RepositoryCache.register(repo);
assertTrue(RepositoryCache.isCached(repo));
repo.close();