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 55
66import java .lang .reflect .Method ;
77import java .util .ArrayList ;
8- import java .util .Collection ;
98import java .util .List ;
109import org .junit .jupiter .api .DynamicTest ;
1110import org .junit .jupiter .api .Test ;
@@ -47,7 +46,7 @@ public void testCustomConstructorInvalidRatio(double ratio) {
4746 }
4847
4948 @ TestFactory
50- public Collection <DynamicTest > dynamicTestsForSorting () {
49+ public List <DynamicTest > dynamicTestsForSorting () {
5150 List <DynamicTest > dynamicTests = new ArrayList <>();
5251 double [] ratios = {0.1 , 0.2 , 0.5 , 0.9 };
5352
@@ -60,7 +59,7 @@ public Collection<DynamicTest> dynamicTestsForSorting() {
6059 return dynamicTests ;
6160 }
6261
63- private Collection <DynamicTest > createDynamicTestsForRatio (double ratio ) {
62+ private List <DynamicTest > createDynamicTestsForRatio (double ratio ) {
6463 List <DynamicTest > dynamicTests = new ArrayList <>();
6564 for (TestMethod testMethod : getTestMethodsFromSuperClass ()) {
6665 dynamicTests .add (DynamicTest .dynamicTest ("Ratio: " + ratio + " - Test: " + testMethod .name (), testMethod .executable ()));
You can’t perform that action at this time.
0 commit comments