This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new a6f9598584 ISIS-3123: test fix f. prev. commit
a6f9598584 is described below
commit a6f959858426f2d21f0fa538b34d8a8479d26557
Author: Andi Huber <[email protected]>
AuthorDate: Mon Oct 10 10:52:31 2022 +0200
ISIS-3123: test fix f. prev. commit
---
.../testdomain/model/valuetypes/ValueTypeExample.java | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git
a/regressiontests/stable/src/main/java/org/apache/isis/testdomain/model/valuetypes/ValueTypeExample.java
b/regressiontests/stable/src/main/java/org/apache/isis/testdomain/model/valuetypes/ValueTypeExample.java
index 692d2a918d..d3378aacdb 100644
---
a/regressiontests/stable/src/main/java/org/apache/isis/testdomain/model/valuetypes/ValueTypeExample.java
+++
b/regressiontests/stable/src/main/java/org/apache/isis/testdomain/model/valuetypes/ValueTypeExample.java
@@ -63,6 +63,7 @@ import org.apache.isis.commons.collections.Can;
import org.apache.isis.commons.internal.base._Refs;
import org.apache.isis.commons.internal.base._Temporals;
import
org.apache.isis.core.metamodel.valuesemantics.ApplicationFeatureIdValueSemantics;
+import org.apache.isis.core.metamodel.valuesemantics.MarkupValueSemantics;
import org.apache.isis.extensions.fullcalendar.applib.value.CalendarEvent;
import
org.apache.isis.extensions.fullcalendar.applib.value.CalendarEventSemantics;
import org.apache.isis.schema.chg.v2.ChangesDto;
@@ -277,10 +278,22 @@ public abstract class ValueTypeExample<T> {
nature = Nature.BEAN)
public static class ValueTypeExampleMarkup
extends ValueTypeExample<Markup> {
+ private MarkupValueSemantics markupSemantics = new
MarkupValueSemantics();
@Property @Getter @Setter
- private Markup value = Markup.valueOf("aMarkup");
+ private Markup value = markupSemantics.getExamples().getElseFail(0);
@Getter
- private Markup updateValue = Markup.valueOf("anotherMarkup");
+ private Markup updateValue =
markupSemantics.getExamples().getElseFail(1);
+ @Override
+ public Can<ParseExpectation<Markup>> getParseExpectations() {
+ val htmlSample = "<a href=\"https://www.apache.org\"
rel=\"nofollow\">link</a>";
+ return Can.of(
+ ParseExpectation.<Markup>builder()
+ .value(new Markup(htmlSample))
+ .inputSample(htmlSample)
+ .expectedOutput(htmlSample)
+ .build()
+ );
+ }
}
@Named("isis.testdomain.valuetypes.ValueTypeExampleVega")