aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-12-02 14:26:42 +0100
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-12-03 09:08:44 +0100
commit8799a27e8d73c5e079d549f6d76abf861d75ee9e (patch)
tree5c8d5201be097654155d9ad69f3af12ebd8d749a /src/test
parent6dbe979e0b6bd6236db304b034ad592a4aeacabc (diff)
downloadmoa-zs-8799a27e8d73c5e079d549f6d76abf861d75ee9e.tar.gz
moa-zs-8799a27e8d73c5e079d549f6d76abf861d75ee9e.tar.bz2
moa-zs-8799a27e8d73c5e079d549f6d76abf861d75ee9e.zip
Finalize "Removal of JAXB Class Not Found Fix"
- Problem: I fixed CompletableFuture.*async within the DeliveryRequest flow, but forgot to do the same for the DeliveryRequestStatus / DeliveryNotification flow. - Solution: Ensure that all CompletableFuture.*async() invocations have Spring's task executor attached.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/at/gv/egiz/moazs/SaveResponseToFileSinkTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/at/gv/egiz/moazs/SaveResponseToFileSinkTest.java b/src/test/java/at/gv/egiz/moazs/SaveResponseToFileSinkTest.java
index c1d742a..1a9b16b 100644
--- a/src/test/java/at/gv/egiz/moazs/SaveResponseToFileSinkTest.java
+++ b/src/test/java/at/gv/egiz/moazs/SaveResponseToFileSinkTest.java
@@ -33,11 +33,13 @@ import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.springframework.core.task.TaskExecutor;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Collection;
+import java.util.concurrent.ForkJoinPool;
import static at.gv.zustellung.msg.xsd.DeliveryRequestStatusType.Success.successBuilder;
import static at.gv.zustellung.msg.xsd.DeliveryRequestStatusType.deliveryRequestStatusTypeBuilder;
@@ -69,7 +71,7 @@ public class SaveResponseToFileSinkTest {
@Before
public void setup() {
- sink = new SaveResponseToFileSink(marshaller, repository);
+ sink = new SaveResponseToFileSink(marshaller, repository, ForkJoinPool.commonPool());
deleteRoot();
}