summaryrefslogtreecommitdiff
path: root/pse-server/src/test/java/org/psesquared/server/TestAsyncConfig.java
diff options
context:
space:
mode:
Diffstat (limited to 'pse-server/src/test/java/org/psesquared/server/TestAsyncConfig.java')
-rw-r--r--pse-server/src/test/java/org/psesquared/server/TestAsyncConfig.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/pse-server/src/test/java/org/psesquared/server/TestAsyncConfig.java b/pse-server/src/test/java/org/psesquared/server/TestAsyncConfig.java
new file mode 100644
index 0000000..6fe9803
--- /dev/null
+++ b/pse-server/src/test/java/org/psesquared/server/TestAsyncConfig.java
@@ -0,0 +1,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();
+ }
+}