package com.drumonii.loltrollbuild.batch.scheduling;

import com.drumonii.loltrollbuild.BaseSpringTestRunner;
import org.junit.Test;
import org.springframework.scheduling.support.CronTrigger;
import org.springframework.scheduling.support.SimpleTriggerContext;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;

import static com.drumonii.loltrollbuild.batch.scheduling.RetrievalJobsScheduling.CRON_SCHEDULE;
import static org.assertj.core.api.Assertions.assertThat;

public class RetrievalJobsSchedulingTest extends BaseSpringTestRunner {

	@Test
	public void allRetrievalsCronExpression() throws Exception {
		CronTrigger cronTrigger = new CronTrigger(CRON_SCHEDULE);
		Date triggerDate = Date.from(LocalDateTime.now().withHour(4).withMinute(0).withSecond(0).withNano(0)
				.atZone(ZoneId.systemDefault()).toInstant());
		LocalDateTime nextExecutionTime = LocalDateTime.ofInstant(cronTrigger.nextExecutionTime(new
				SimpleTriggerContext(triggerDate, triggerDate, triggerDate)).toInstant(), ZoneId.systemDefault());
		assertThat(nextExecutionTime)
				.isEqualTo(LocalDateTime.now().plusDays(1).withHour(4).withMinute(0).withSecond(0).withNano(0));
	}

}
@@ -58,55 +58,55 @@
 ort 
-com.drumonii.loltrollbuild.BaseSpringTestRunner
+org.junit.Test;%0Aimport org.junit.runner.RunWith
 ;%0Aim
@@ -112,36 +112,46 @@
 mport org.junit.
-Test
+runners.JUnit4
 ;%0Aimport org.spr
@@ -501,16 +501,39 @@
 tThat;%0A%0A
+@RunWith(JUnit4.class)%0A
 public c
@@ -569,37 +569,8 @@
 est 
-extends BaseSpringTestRunner 
 %7B%0A%0A%09
@@ -621,25 +621,8 @@
 on()
- throws Exception
  %7B%0A%09
@@ -927,16 +927,17 @@
 ime(
-new
 %0A%09%09%09%09
+new 
 Simp

Convert RetrievalJobsSchedulingTest to @RunWith(JUnit4.class)