From e70ab9d1e4c0f066e1fc326169865498e259a9c2 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 5 Jun 2016 20:19:42 +0100 Subject: [PATCH] Added menu option for unit testing saving journal information --- source/tests/xestiacalendar_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/tests/xestiacalendar_test.cpp b/source/tests/xestiacalendar_test.cpp index c6a602f..ff2e58c 100644 --- a/source/tests/xestiacalendar_test.cpp +++ b/source/tests/xestiacalendar_test.cpp @@ -37,6 +37,7 @@ enum MenuOpts { TESTS_ICALLOADEVENT = 1, TESTS_ICALSAVEEVENT, TESTS_ICALLOADTODO, + TESTS_ICALSAVEJOURNAL, TESTS_ICALLOADJOURNAL, TESTS_ICALLOADFREEBUSY, TESTS_ICALSAVEFREEBUSY, @@ -67,6 +68,7 @@ void printmenu(){ std::cout << TESTS_ICALSAVEEVENT << ". iCalendar Event Component Save" << std::endl; std::cout << TESTS_ICALLOADTODO << ". iCalendar Task Component Load" << std::endl; std::cout << TESTS_ICALLOADJOURNAL << ". iCalendar Journal Component Load" << std::endl; + std::cout << TESTS_ICALSAVEJOURNAL << ". iCalendar Journal Component Save" << std::endl; std::cout << TESTS_ICALLOADFREEBUSY << ". iCalendar FreeBusy Component Load" << std::endl; std::cout << TESTS_ICALSAVEFREEBUSY << ". iCalendar FreeBusy Component Save" << std::endl; std::cout << TESTS_ICALLOADTIMEZONE << ". iCalendar Timezone Component Load" << std::endl; @@ -208,6 +210,11 @@ int main(int argc, char* argv[]){ ::testing::GTEST_FLAG(filter) = "iCalendarJournal*"; TestResult = RUN_ALL_TESTS(); break; + case TESTS_ICALSAVEJOURNAL: + printn("Running iCalendar Journal Component Save tests..."); + ::testing::GTEST_FLAG(filter) = "iCalendarSaveJournal*"; + TestResult = RUN_ALL_TESTS(); + break; case TESTS_ICALLOADFREEBUSY: printn("Running iCalendar Free Busy Component tests..."); ::testing::GTEST_FLAG(filter) = "iCalendarFreeBusy*"; -- 2.39.2