use of org.locationtech.geogig.api.RevTreeImpl in project GeoGig by boundlessgeo.
the class RevTreeSerializationTest method testRoundTripBucketsFull.
@Test
public void testRoundTripBucketsFull() {
ObjectId id = ObjectId.forString("fake");
long size = 100000000;
int childTreeCount = 0;
Map<Integer, Bucket> bucketTrees = createBuckets(32);
final RevTreeImpl tree = RevTreeImpl.createNodeTree(id, size, childTreeCount, bucketTrees);
RevTree roundTripped = read(tree.getId(), write(tree));
assertTreesAreEqual(tree, roundTripped);
}
Aggregations