remove deprecations and fixed some compiler warnings

This commit is contained in:
Sebastian Sdorra
2017-01-12 20:02:06 +01:00
parent bad99919f4
commit fc6287fd40
17 changed files with 22 additions and 1588 deletions

View File

@@ -41,7 +41,6 @@ import static org.hamcrest.Matchers.*;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.quartz.CronTrigger;
@@ -77,6 +76,7 @@ public class QuartzSchedulerTest {
* @throws SchedulerException
*/
@Test
@SuppressWarnings("unchecked")
public void testSchedule() throws SchedulerException
{
DummyRunnable dr = new DummyRunnable();
@@ -158,6 +158,7 @@ public class QuartzSchedulerTest {
* @throws SchedulerException
*/
@Test
@SuppressWarnings("unchecked")
public void testInitException() throws SchedulerException
{
when(quartzScheduler.isStarted()).thenThrow(SchedulerException.class);
@@ -200,6 +201,7 @@ public class QuartzSchedulerTest {
* @throws SchedulerException
*/
@Test
@SuppressWarnings("unchecked")
public void testCloseException() throws IOException, SchedulerException
{
when(quartzScheduler.isStarted()).thenThrow(SchedulerException.class);