mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: include OCP_OVERLY_CONCRETE_PARAMETER (#5833)
This commit is contained in:
@@ -3,6 +3,7 @@ package com.thealgorithms.scheduling;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import com.thealgorithms.devutils.entities.ProcessDetails;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.stream.Stream;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
@@ -17,7 +18,7 @@ import org.junit.jupiter.params.provider.MethodSource;
|
||||
class PreemptivePrioritySchedulingTest {
|
||||
@ParameterizedTest
|
||||
@MethodSource("provideProcessesAndExpectedSchedules")
|
||||
void testPreemptivePriorityScheduling(List<ProcessDetails> processes, List<String> expectedSchedule) {
|
||||
void testPreemptivePriorityScheduling(Collection<ProcessDetails> processes, List<String> expectedSchedule) {
|
||||
PreemptivePriorityScheduling scheduler = new PreemptivePriorityScheduling(processes);
|
||||
scheduler.scheduleProcesses();
|
||||
assertEquals(expectedSchedule, scheduler.ganttChart);
|
||||
|
||||
Reference in New Issue
Block a user