\r
import java.util.UUID;\r
\r
+\r
import org.argeo.slc.build.Distribution;\r
+import org.argeo.slc.core.attachment.SimpleAttachment;\r
import org.argeo.slc.core.structure.SimpleSElement;\r
import org.argeo.slc.core.structure.tree.TreeSPath;\r
import org.argeo.slc.core.structure.tree.TreeSRegistry;\r
return ttr;\r
}\r
\r
+ public static TreeTestResult createComplexeTreeTestResult() {\r
+ SlcExecution slcExecution = SlcExecutionTestUtils\r
+ .createSimpleSlcExecution();\r
+ SlcExecutionStep step = new SlcExecutionStep("JUnit step");\r
+ slcExecution.getSteps().add(step);\r
+\r
+ TreeTestResult ttr = createMinimalConsistentTreeTestResult(slcExecution);\r
+\r
+ ttr.addResultPart(createSimpleResultPartPassed());\r
+ ttr.addResultPart(createSimpleResultPartFailed());\r
+ //ttr.addResultPart(createSimpleResultPartError());\r
+ \r
+ SimpleAttachment sa = new SimpleAttachment(UUID.randomUUID().toString(),"AnAttachment","UTF8");\r
+ SimpleAttachment sa2 = new SimpleAttachment(UUID.randomUUID().toString(),"AnOtherAttachment","UTF8");\r
+ ttr.addAttachment(sa);\r
+ ttr.addAttachment(sa2);\r
+ return ttr;\r
+ }\r
+\r
public static TreeTestResult createMinimalConsistentTreeTestResult(\r
SlcExecution slcExecution) {\r
SimpleTestRun testRun = new SimpleTestRun();\r
testRun.setUuid(UUID.randomUUID().toString());\r
\r
+ // Doesn't work in hibernate with such a path.\r
+ //String pathStr = "/fileDiff/testcases/issue";\r
String pathStr = "/test";\r
TreeSPath path = new TreeSPath(pathStr);\r
\r