java.lang.Object
org.eclipse.jgit.junit.FakeIndexFactory
Create indexes with predefined data
- Since:
- 7.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordAn object for the fake index -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.jgit.internal.storage.file.PackIndexReturn an index populated with these objectsstatic org.eclipse.jgit.internal.storage.file.PackReverseIndexReturn a reverse pack index with these objects
-
Method Details
-
indexOf
public static org.eclipse.jgit.internal.storage.file.PackIndex indexOf(List<FakeIndexFactory.IndexObject> objs) Return an index populated with these objects- Parameters:
objs- objects to be indexed- Returns:
- a PackIndex implementation
-
reverseIndexOf
public static org.eclipse.jgit.internal.storage.file.PackReverseIndex reverseIndexOf(List<FakeIndexFactory.IndexObject> objs) Return a reverse pack index with these objects- Parameters:
objs- objects to be indexed- Returns:
- a PackReverseIndex implementation
-