From f554bed7ba3227ea3eaeeb3812ff8b828c9d3e42 Mon Sep 17 00:00:00 2001 From: Attila Kelemen Date: Tue, 12 Sep 2017 22:46:52 +0200 Subject: [PATCH] Fixed PropertyOfPropertyTest to use a event listener executor which adheres to the requirement of the listener notification. --- .../test/java/org/jtrim2/property/PropertyOfPropertyTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/jtrim-property/src/test/java/org/jtrim2/property/PropertyOfPropertyTest.java b/subprojects/jtrim-property/src/test/java/org/jtrim2/property/PropertyOfPropertyTest.java index f47adc9a..95d211a3 100644 --- a/subprojects/jtrim-property/src/test/java/org/jtrim2/property/PropertyOfPropertyTest.java +++ b/subprojects/jtrim-property/src/test/java/org/jtrim2/property/PropertyOfPropertyTest.java @@ -14,7 +14,7 @@ import java.util.stream.IntStream; import org.jtrim2.concurrent.Tasks; import org.jtrim2.event.ListenerRef; -import org.jtrim2.executor.SyncTaskExecutor; +import org.jtrim2.executor.TaskExecutors; import org.jtrim2.testutils.JTrimTests; import org.junit.Test; @@ -257,7 +257,7 @@ private static final class TestProperty { public TestProperty(TestFactory, String> factory) { this.originalNested = PropertyFactory.memProperty(""); - this.property = PropertyFactory.memPropertyConcurrent(originalNested, SyncTaskExecutor.getSimpleExecutor()); + this.property = PropertyFactory.memPropertyConcurrent(originalNested, TaskExecutors.inOrderSyncExecutor()); this.wrapper = factory.create(property, arg -> arg); }