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 2021/07/01 05:20:37 UTC
[isis] branch ISIS-1720 updated: ISIS-1720: also fails if
everything is static...
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch ISIS-1720
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/ISIS-1720 by this push:
new e0feb03 ISIS-1720: also fails if everything is static...
e0feb03 is described below
commit e0feb03e3671552b360a8512e302e5f110d2f2e0
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Jul 1 06:20:18 2021 +0100
ISIS-1720: also fails if everything is static...
---
.../isis/testdomain/interact/WrapperInteractionTest2.java | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/regressiontests/stable-interact/src/test/java/org/apache/isis/testdomain/interact/WrapperInteractionTest2.java b/regressiontests/stable-interact/src/test/java/org/apache/isis/testdomain/interact/WrapperInteractionTest2.java
index 72c8c2e..ffb56ac 100644
--- a/regressiontests/stable-interact/src/test/java/org/apache/isis/testdomain/interact/WrapperInteractionTest2.java
+++ b/regressiontests/stable-interact/src/test/java/org/apache/isis/testdomain/interact/WrapperInteractionTest2.java
@@ -25,6 +25,7 @@ import java.util.stream.Collectors;
import javax.inject.Inject;
import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.TestPropertySource;
@@ -93,22 +94,26 @@ extends InteractionTestAbstract {
Outcome outcome;
@Action
- public class Succeeded
+ public static class Succeeded
extends MixinAbstract {
+ public Succeeded(Task task) { super(task); }
public List<Task.Outcome> choices0Act() { return Task.Outcome.successes(); }
}
@Action
- public class Failed
+ public static class Failed
extends MixinAbstract {
+ public Failed(Task task) { super(task); }
public List<Task.Outcome> choices0Act() { return Task.Outcome.failures(); }
}
// an abstract mixin class
- abstract class MixinAbstract {
+ @RequiredArgsConstructor
+ abstract static class MixinAbstract {
+ private final Task task;
public Task act(Task.Outcome outcome) {
- Task.this.outcome = outcome;
- return Task.this;
+ task.outcome = outcome;
+ return task;
}
}
}