Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/test/java/com/thealgorithms/sorts/FlashSortTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.junit.jupiter.api.DynamicTest;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -47,7 +46,7 @@ public void testCustomConstructorInvalidRatio(double ratio) {
}

@TestFactory
public Collection<DynamicTest> dynamicTestsForSorting() {
public List<DynamicTest> dynamicTestsForSorting() {
List<DynamicTest> dynamicTests = new ArrayList<>();
double[] ratios = {0.1, 0.2, 0.5, 0.9};

Expand All @@ -60,7 +59,7 @@ public Collection<DynamicTest> dynamicTestsForSorting() {
return dynamicTests;
}

private Collection<DynamicTest> createDynamicTestsForRatio(double ratio) {
private List<DynamicTest> createDynamicTestsForRatio(double ratio) {
List<DynamicTest> dynamicTests = new ArrayList<>();
for (TestMethod testMethod : getTestMethodsFromSuperClass()) {
dynamicTests.add(DynamicTest.dynamicTest("Ratio: " + ratio + " - Test: " + testMethod.name(), testMethod.executable()));
Expand Down