引入 redis mock 服务器

This commit is contained in:
YunaiV
2021-02-28 23:38:58 +08:00
parent 2f0d7e8aba
commit 7bb2dd1167
16 changed files with 101 additions and 46 deletions

View File

@@ -1,14 +1,18 @@
package cn.iocoder.dashboard.config;
import io.reactivex.rxjava3.core.Scheduler;
import org.mockito.Mockito;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
@Configuration
@Lazy(false)
public class QuartzTestConfiguration {
// TODO 芋艿:暂时不用 Scheduler
// @Bean
// public Scheduler scheduler() {
// return Mockito.mock(Scheduler.class);
// }
@Bean
public Scheduler scheduler() {
return Mockito.mock(Scheduler.class);
}
}