.getSlcExecution(testRunDescriptor\r
.getSlcExecutionUuid());\r
if (slcExecution != null) {\r
- addResultToCollection(slcExecution.getUser(),\r
- testRunDescriptor.getTestResultUuid());\r
+ String collectionId = slcExecution.getUser() != null ? slcExecution\r
+ .getUser()\r
+ : "default";\r
+ addResultToCollection(collectionId, testRunDescriptor\r
+ .getTestResultUuid());\r
}\r
}\r
}\r
ttrc = new TreeTestResultCollection(collectionId);\r
treeTestResultCollectionDao.create(ttrc);\r
}\r
- TreeTestResult ttr = treeTestResultDao.getTestResult(resultUuid);\r
- ttrc.getResults().add(ttr);\r
- treeTestResultCollectionDao.update(ttrc);\r
+ treeTestResultCollectionDao.addResultToCollection(ttrc, resultUuid);\r
}\r
\r
public void removeResultFromCollection(String collectionId,\r
TreeTestResultCollection ttrc = treeTestResultCollectionDao\r
.getTestResultCollection(collectionId);\r
if (ttrc != null) {\r
- TreeTestResult ttr = treeTestResultDao.getTestResult(resultUuid);\r
- if (ttrc.getResults().remove(ttr)) {\r
- treeTestResultCollectionDao.update(ttrc);\r
- }\r
+ treeTestResultCollectionDao.removeResultFromCollection(ttrc,\r
+ resultUuid);\r
}\r
}\r
\r