Polish ScheduledTaskRegistrar(Tests)

This commit is contained in:
Sam Brannen
2015-02-27 19:26:17 +01:00
parent e24ebd6dbb
commit fcd60b269e
2 changed files with 12 additions and 9 deletions

View File

@@ -25,7 +25,10 @@ import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
/**
* Unit tests for {@link ScheduledTaskRegistrar}.
*
* @author Tobias Montagna-Hay
* @since 4.2
*/
public class ScheduledTaskRegistrarTests {
@@ -52,7 +55,7 @@ public class ScheduledTaskRegistrarTests {
}
@Test
public void testGetFixedRateTasks() {
public void getFixedRateTasks() {
IntervalTask mockFixedRateTask = mock(IntervalTask.class);
List<IntervalTask> fixedRateTaskList = Collections.singletonList(mockFixedRateTask);
this.taskRegistrar.setFixedRateTasksList(fixedRateTaskList);
@@ -62,7 +65,7 @@ public class ScheduledTaskRegistrarTests {
}
@Test
public void testGetFixedDelayTasks() {
public void getFixedDelayTasks() {
IntervalTask mockFixedDelayTask = mock(IntervalTask.class);
List<IntervalTask> fixedDelayTaskList = Collections.singletonList(mockFixedDelayTask);
this.taskRegistrar.setFixedDelayTasksList(fixedDelayTaskList);