import org.argeo.slc.services.test.TestManagerService;\r
import org.argeo.slc.test.TestRunDescriptor;\r
\r
-/** Implementation of complex operations impacting the underlying data. */\r
+/**\r
+ * Implementation of complex operations impacting the underlying data.\r
+ */\r
public class TestManagerServiceImpl implements TestManagerService {\r
private Log log = LogFactory.getLog(getClass());\r
\r
.getTestResultUuid());\r
}\r
} else {\r
- log\r
- .trace("ResultUUID="\r
- + testRunDescriptor.getTestResultUuid());\r
+ if (log.isTraceEnabled())\r
+ log.trace("ResultUUID="\r
+ + testRunDescriptor.getTestResultUuid());\r
addResultToCollection("default", testRunDescriptor\r
.getTestResultUuid());\r
}\r
}\r
\r
public void addResultToCollection(String collectionId, String resultUuid) {\r
+ // TODO: improve collections\r
TreeTestResultCollection ttrc = treeTestResultCollectionDao\r
.getTestResultCollection(collectionId);\r
if (ttrc == null) {\r
treeTestResultDao.create(treeTestResult);\r
\r
registerTestRunDescriptor(msg.getTestRunDescriptor());\r
+\r
+ // FIXME: temporary hack before better collection management is found\r
+ if (msg.getTestRunDescriptor() == null) {\r
+ addResultToCollection("default", treeTestResult.getUuid());\r
+ }\r
}\r
\r
public void addResultPart(ResultPartRequest msg) {\r