引入 redis mock 服务器
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user