1
2
3
4
5
6
7
8
9
10 package org.eclipse.jgit.internal.revwalk;
11
12 import org.eclipse.jgit.internal.storage.file.FileRepository;
13 import org.eclipse.jgit.internal.storage.file.GC;
14 import org.eclipse.jgit.junit.TestRepository;
15 import org.eclipse.jgit.revwalk.ObjectReachabilityChecker;
16
17 public class BitmappedObjectReachabilityTest
18 extends ObjectReachabilityTestCase {
19
20 @Override
21 ObjectReachabilityChecker getChecker(
22 TestRepository<FileRepository> repository) throws Exception {
23
24 GC gc = new GC(repository.getRepository());
25 gc.setAuto(false);
26 gc.gc().get();
27
28 return new BitmappedObjectReachabilityChecker(
29 repository.getRevWalk().toObjectWalkWithSameObjects());
30 }
31
32 }