You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2020/01/26 15:57:45 UTC
[isis] 10/14: ISIS-2062: updates javadoc for
IsisIntegrationTestAbstract.CommandSupport service
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
commit 38ecdbde9880f1495cff29de8bb80320871ee29d
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Sun Jan 26 15:02:51 2020 +0000
ISIS-2062: updates javadoc for IsisIntegrationTestAbstract.CommandSupport service
---
.../applib/IsisIntegrationTestAbstract.java | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/testing/integtestsupport/applib/src/main/java/org/apache/isis/testing/integtestsupport/applib/IsisIntegrationTestAbstract.java b/testing/integtestsupport/applib/src/main/java/org/apache/isis/testing/integtestsupport/applib/IsisIntegrationTestAbstract.java
index 3824dbc..473b4bf 100644
--- a/testing/integtestsupport/applib/src/main/java/org/apache/isis/testing/integtestsupport/applib/IsisIntegrationTestAbstract.java
+++ b/testing/integtestsupport/applib/src/main/java/org/apache/isis/testing/integtestsupport/applib/IsisIntegrationTestAbstract.java
@@ -24,6 +24,8 @@ import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;
+import org.apache.isis.applib.annotation.Action;
+import org.apache.isis.applib.annotation.CommandReification;
import org.apache.isis.applib.annotation.OrderPrecedence;
import org.apache.isis.applib.services.command.Command;
import org.apache.isis.applib.services.command.CommandContext;
@@ -44,6 +46,17 @@ import org.apache.isis.core.runtime.persistence.transaction.events.TransactionAf
*/
public abstract class IsisIntegrationTestAbstract {
+ /**
+ * If included as a service, then ensures that any {@link Command}s created (eg as a result of
+ * {@link Action#command()} set to {@link CommandReification#ENABLED}) will be appear to be created as
+ * user initiatied.
+ *
+ * <p>
+ * Most integration tests won't be concerned with such details, but tests that verify the interaction with the
+ * {@link org.apache.isis.applib.services.command.spi.CommandService} implementations may require this
+ * behaviour.
+ * </p>
+ */
@Service
@Order(OrderPrecedence.MIDPOINT)
public static class CommandSupport {