Class FakeIndexFactory

java.lang.Object
org.eclipse.jgit.junit.FakeIndexFactory

public class FakeIndexFactory extends Object
Create indexes with predefined data
Since:
7.2
  • 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