diff --git a/plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/manual/ManualTest.java b/plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/manual/ManualTest.java index e9d81e8a4a0..ce46ee92acd 100644 --- a/plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/manual/ManualTest.java +++ b/plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/manual/ManualTest.java @@ -41,13 +41,19 @@ public abstract class ManualTest { private final boolean testWrite; private final List testCases; + private final int numRandomReads; + public ManualTest(String connectionString) { this(connectionString, true); } public ManualTest(String connectionString, boolean testWrite) { + this(connectionString, testWrite, 100); + } + public ManualTest(String connectionString, boolean testWrite, int numRandomReads) { this.connectionString = connectionString; this.testWrite = testWrite; + this.numRandomReads = numRandomReads; testCases = new ArrayList<>(); } @@ -129,8 +135,8 @@ public void run() throws Exception { // Read all items in one big request. // Shuffle the list of test cases and run the test 10 times. System.out.println("Reading all items together in random order"); - for (int i = 0; i < 100; i++) { - System.out.println(" - run number " + i + " of " + 100); + for (int i = 0; i < numRandomReads; i++) { + System.out.println(" - run number " + i + " of " + numRandomReads); final List shuffledTestcases = new ArrayList<>(testCases); Collections.shuffle(shuffledTestcases);