package org.argeo.slc.testslc;\r
\r
+import org.argeo.slc.core.structure.StructurePath;\r
import org.argeo.slc.core.structure.StructureRegistry;\r
import org.argeo.slc.core.structure.tree.DefaultTreeSAware;\r
-import org.argeo.slc.core.structure.tree.TreeSAware;\r
import org.argeo.slc.core.structure.tree.TreeSElement;\r
import org.argeo.slc.core.test.TestData;\r
\r
private Object reached;\r
private Object expected;\r
\r
+ public DummyTestData(){\r
+ setElement(new TreeSElement("This is a dummy test data"));\r
+ }\r
+ \r
public Object getReached() {\r
return reached;\r
}\r
}\r
\r
@Override\r
- public void onRegister(StructureRegistry registry) {\r
- if (expected instanceof TreeSAware) {\r
- TreeSAware sAware = (TreeSAware) expected;\r
- TreeSElement element = ((TreeSElement) getElement()).createChild(\r
- "expected" + getPropagationList().size(), "<no desc>");\r
+ public void onRegister(StructureRegistry registry, StructurePath path) {\r
+ if (expected instanceof DefaultTreeSAware) {\r
+ DefaultTreeSAware sAware = (DefaultTreeSAware) expected;\r
+ TreeSElement element = new TreeSElement("This is an expected");\r
+ element.setDescription("<no desc>");\r
sAware.setElement(element);\r
- addToPropagationList(sAware);\r
+ addToPropagationList("expected",sAware);\r
}\r
- super.onRegister(registry);\r
+ super.onRegister(registry, path);\r
}\r
\r
\r