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 2014/12/11 14:03:07 UTC
svn commit: r1644624 -
/isis/site/trunk/content/more-advanced-topics/Fixture-Scripts.md
Author: danhaywood
Date: Thu Dec 11 13:03:06 2014
New Revision: 1644624
URL: http://svn.apache.org/r1644624
Log:
fixture scripts
Modified:
isis/site/trunk/content/more-advanced-topics/Fixture-Scripts.md
Modified: isis/site/trunk/content/more-advanced-topics/Fixture-Scripts.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/more-advanced-topics/Fixture-Scripts.md?rev=1644624&r1=1644623&r2=1644624&view=diff
==============================================================================
--- isis/site/trunk/content/more-advanced-topics/Fixture-Scripts.md (original)
+++ isis/site/trunk/content/more-advanced-topics/Fixture-Scripts.md Thu Dec 11 13:03:06 2014
@@ -430,7 +430,7 @@ As the screenshots above show, the `Fixt
}
These parameters are then made available in `ExecutionContext` to be consumed by the fixture script (and any child
-fixture scripts that might be called in turn).
+fixture scripts that might be called in turn):
public class ExecutionContext {
...
@@ -451,7 +451,10 @@ to support parameters specified in key=v
}
The last method `setParameterIfNotPresent(...)`, provides a useful way by which the fixture script can supply defaults
-if they haven't been specified in the calling script. For example, the `ToDoItemsRecreate` fixture script uses this API:
+if they haven't been specified in the calling script.
+
+For example, the `ToDoItemsRecreate` fixture script uses this API to default an "ownedBy" parameter (so that every
+todo item created is for a particular user):
public class ToDoItemsRecreate extends FixtureScript {
...