return true; // OK
}
-bool EventOperation::test__clear(std::string &response) {
+bool EventOperation::test__clear(std::string &response, int id) {
Launcher& my_app = static_cast <Launcher&>(anna::app::functions::getApp());
anna::testing::TestManager &testManager = anna::testing::TestManager::instantiate();
- return testManager.clearPool(response);
+ if (id == -1) {
+ return testManager.clearPool(response);
+ }
+
+ if (!testManager.findTestCase(id)) {
+ response += "cannot found test id (";
+ response += anna::functions::asString(id);
+ response += ")";
+ return false;
+ }
+
+ return testManager.clearTestCase(response, id);
}
bool EventOperation::test__junit(std::string &response, const std::string & targetFile) {