use of org.locationtech.geogig.storage.memory.HeapObjectDatabse in project GeoGig by boundlessgeo.
the class DiffCountConsumerTest method setUp.
@Before
public void setUp() {
odb = new HeapObjectDatabse();
odb.open();
{
RevTreeBuilder builder = createFeaturesTree("", 10);
this.childrenFeatureTree = builder.build();
}
{
RevTreeBuilder rootBuilder = new RevTreeBuilder(odb);
childTree1 = createFeaturesTree("tree1", 10);
createFeatureTypesTree(rootBuilder, "tree1", childTree1);
childTree2 = createFeaturesTree("tree2", 5);
createFeatureTypesTree(rootBuilder, "tree2", childTree2);
childrenFeatureTypesTree = rootBuilder.build();
}
{
RevTreeBuilder builder = createFeaturesTree("", 2 * RevTree.NORMALIZED_SIZE_LIMIT);
this.bucketsFeatureTree = builder.build();
assertTrue(bucketsFeatureTree.buckets().isPresent());
}
}
Aggregations