stefan-egli commented on code in PR #1454: URL: https://github.com/apache/jackrabbit-oak/pull/1454#discussion_r1600320404
########## oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGCSupportTest.java: ########## @@ -18,42 +18,54 @@ */ package org.apache.jackrabbit.oak.plugins.document; +import java.util.ArrayList; import java.util.List; -import org.apache.jackrabbit.guava.common.collect.Iterables; -import org.apache.jackrabbit.guava.common.collect.Lists; import com.mongodb.ReadPreference; import org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore; import org.apache.jackrabbit.oak.plugins.document.mongo.MongoTestUtils; import org.apache.jackrabbit.oak.plugins.document.mongo.MongoVersionGCSupport; import org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore; import org.apache.jackrabbit.oak.plugins.document.rdb.RDBVersionGCSupport; -import org.apache.jackrabbit.oak.plugins.document.util.Utils; -import org.apache.jackrabbit.oak.stats.Clock; import org.junit.After; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; +import static java.lang.Long.MAX_VALUE; +import static java.util.Comparator.comparing; +import static java.util.List.of; +import static java.util.Optional.ofNullable; import static java.util.concurrent.TimeUnit.SECONDS; +import static java.util.stream.StreamSupport.stream; +import static org.apache.jackrabbit.guava.common.collect.Comparators.isInOrder; +import static org.apache.jackrabbit.oak.plugins.document.Collection.NODES; +import static org.apache.jackrabbit.oak.plugins.document.Document.ID; import static org.apache.jackrabbit.oak.plugins.document.DocumentStoreFixture.MEMORY; import static org.apache.jackrabbit.oak.plugins.document.DocumentStoreFixture.MONGO; import static org.apache.jackrabbit.oak.plugins.document.DocumentStoreFixture.RDB_H2; +import static org.apache.jackrabbit.oak.plugins.document.NodeDocument.MIN_ID_VALUE; +import static org.apache.jackrabbit.oak.plugins.document.NodeDocument.MODIFIED_IN_SECS; +import static org.apache.jackrabbit.oak.plugins.document.NodeDocument.NULL; +import static org.apache.jackrabbit.oak.plugins.document.NodeDocument.setModified; +import static org.apache.jackrabbit.oak.plugins.document.util.Utils.getIdFromPath; +import static org.apache.jackrabbit.oak.stats.Clock.SIMPLE; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertTrue; @RunWith(Parameterized.class) public class VersionGCSupportTest { - private DocumentStoreFixture fixture; - private DocumentStore store; - private VersionGCSupport gcSupport; - private List<String> ids = Lists.newArrayList(); + private final DocumentStoreFixture fixture; + private final DocumentStore store; + private final VersionGCSupport gcSupport; + private final List<String> ids = new ArrayList<>(); @Parameterized.Parameters(name="{0}") public static java.util.Collection<DocumentStoreFixture> fixtures() { - List<DocumentStoreFixture> fixtures = Lists.newArrayList(); + List<DocumentStoreFixture> fixtures = new ArrayList<>(3); Review Comment: did same change in https://github.com/apache/jackrabbit-oak/pull/1459 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org