1
2
3
4
5
6
7
8
9
10 package org.eclipse.jgit.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
18 public class BitmappedReachabilityCheckerTest
19 extends ReachabilityCheckerTestCase {
20
21 @Override
22 protected ReachabilityChecker getChecker(
23 TestRepository<FileRepository> repository) throws Exception {
24
25 GC gc = new GC(repo.getRepository());
26 gc.setAuto(false);
27 gc.gc();
28
29
30 assertNotNull("Probably the test didn't define any ref",
31 repo.getRevWalk().getObjectReader().getBitmapIndex());
32
33 return new BitmappedReachabilityChecker(repository.getRevWalk());
34 }
35
36 }