1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package org.psesquared.server; import java.util.concurrent.Executor; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.core.task.SyncTaskExecutor; @TestConfiguration public class TestAsyncConfig { @Bean public Executor taskExecutor() { return new SyncTaskExecutor(); } }