File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/test/java/com/thealgorithms/sorts Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import java .lang .reflect .Method ;
7
7
import java .util .ArrayList ;
8
- import java .util .Collection ;
9
8
import java .util .List ;
10
9
import org .junit .jupiter .api .DynamicTest ;
11
10
import org .junit .jupiter .api .Test ;
@@ -47,7 +46,7 @@ public void testCustomConstructorInvalidRatio(double ratio) {
47
46
}
48
47
49
48
@ TestFactory
50
- public Collection <DynamicTest > dynamicTestsForSorting () {
49
+ public List <DynamicTest > dynamicTestsForSorting () {
51
50
List <DynamicTest > dynamicTests = new ArrayList <>();
52
51
double [] ratios = {0.1 , 0.2 , 0.5 , 0.9 };
53
52
@@ -60,7 +59,7 @@ public Collection<DynamicTest> dynamicTestsForSorting() {
60
59
return dynamicTests ;
61
60
}
62
61
63
- private Collection <DynamicTest > createDynamicTestsForRatio (double ratio ) {
62
+ private List <DynamicTest > createDynamicTestsForRatio (double ratio ) {
64
63
List <DynamicTest > dynamicTests = new ArrayList <>();
65
64
for (TestMethod testMethod : getTestMethodsFromSuperClass ()) {
66
65
dynamicTests .add (DynamicTest .dynamicTest ("Ratio: " + ratio + " - Test: " + testMethod .name (), testMethod .executable ()));
You can’t perform that action at this time.
0 commit comments