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
public class TestManagerServiceImpl implements TestManagerService {\r
private Log log = LogFactory.getLog(getClass());\r
\r
treeTestResultCollectionDao.removeResultFromCollection(ttrc,\r
resultUuid);\r
}\r
+\r
+ // Delete collection if empty\r
+ // see https://www.argeo.org/bugzilla/show_bug.cgi?id=74\r
+ if (ttrc.getResults().size() == 0) {\r
+ treeTestResultCollectionDao.delete(ttrc);\r
+ }\r
}\r
\r
}\r