1
2
3
4
5
6
7
8
9
10 package org.eclipse.jgit.internal.revwalk;
11
12 import static org.junit.Assert.assertNotNull;
13
14 import org.eclipse.jgit.internal.storage.file.FileRepository;
15 import org.eclipse.jgit.internal.storage.file.GC;
16 import org.eclipse.jgit.junit.TestRepository;
17 import org.eclipse.jgit.revwalk.ReachabilityChecker;
18
19 public class BitmappedReachabilityCheckerTest
20 extends ReachabilityCheckerTestCase {
21
22 @Override
23 protected ReachabilityChecker getChecker(
24 TestRepository<FileRepository> repository) throws Exception {
25
26 GC gc = new GC(repo.getRepository());
27 gc.setAuto(false);
28 gc.gc().get();
29
30
31 assertNotNull("Probably the test didn't define any ref",
32 repo.getRevWalk().getObjectReader().getBitmapIndex());
33
34 return new BitmappedReachabilityChecker(repository.getRevWalk());
35 }
36
37 }