}\r
\r
public void addResultPart(TestResultPart part) {\r
- if (currentPath == null) {\r
+ if (isClosed)\r
+ throw new SlcException("Cannot result parts to a closed result");\r
+\r
+ if (currentPath == null)\r
throw new SlcException("No current path set.");\r
- }\r
+\r
PartSubList subList = resultParts.get(currentPath);\r
if (subList == null) {\r
subList = new PartSubList();\r
\r
public void close() {\r
if (isClosed) {\r
- throw new SlcException("Test Result #" + getUuid()\r
- + " already closed.");\r
+ log.warn("Test Result #" + getUuid()\r
+ + " already closed. Doing nothing.");\r
+ return;\r
}\r
+\r
closeDate = new Date();\r
\r
synchronized (listeners) {\r