chesnokoff commented on code in PR #11969: URL: https://github.com/apache/ignite/pull/11969#discussion_r2070355851
########## modules/compatibility/src/test/java/org/apache/ignite/compatibility/persistence/NodeFileTreeCompatibilityTest.java: ########## @@ -0,0 +1,289 @@ +package org.apache.ignite.compatibility.persistence; + +import java.io.File; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; + +import org.apache.commons.io.FileUtils; +import org.apache.ignite.IgniteCheckedException; +import org.apache.ignite.internal.IgniteEx; +import org.apache.ignite.internal.util.typedef.internal.U; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +/** */ +public class NodeFileTreeCompatibilityTest extends IgniteNodeFileTreeCompatibilityAbstractTest { + /** */ + @Parameter(5) + public int nodesCnt; + + /** */ + private static final String OLD_WORK_DIR; + + static { + try { + OLD_WORK_DIR = String.format("%s-%s", U.defaultWorkDirectory(), OLD_IGNITE_VERSION); + } + catch (IgniteCheckedException e) { + throw new RuntimeException(e); + } + } + + /** */ + @Parameters(name = "incSnp={0}, customConsId={1}, cacheDump={2}, customSnpPath={3}, testCacheGrp={4}, nodesCnt={5}") + public static Collection<Object[]> data() { + List<Object[]> data = new ArrayList<>(); + + for (boolean incSnp : Arrays.asList(true, false)) + for (boolean customConsId: Arrays.asList(true, false)) + for (boolean cacheDump : Arrays.asList(true, false)) + for (boolean customSnpPath : Arrays.asList(true, false)) + for (boolean testCacheGrp : Arrays.asList(true, false)) + for (int nodesCnt : Arrays.asList(1, 3)) + if (!incSnp || !cacheDump) + data.add(new Object[]{incSnp, customConsId, cacheDump, customSnpPath, testCacheGrp, nodesCnt}); Review Comment: Maybe GridTestUtils.cartesianProduct will be helpful here -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org