summaryrefslogtreecommitdiff
path: root/pse-server/src/test/java/org/psesquared/server/TestAsyncConfig.java
blob: 6fe9803de05a082a34fa63470626f741f4722717 (plain)
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();
    }
}