Go to the documentation of this file.00001 #include "../utest.h"
00002
00003 using namespace std;
00004 using namespace PointMatcherSupport;
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 TEST(Loggers, FileLogger)
00016 {
00017 string infoFileName = "utest_info";
00018 string warningFileName = "utest_warn";
00019
00020 Logger* fileLog =
00021 PM::get().REG(Logger).create(
00022 "FileLogger", map_list_of
00023 ("infoFileName", infoFileName)
00024 ("warningFileName", warningFileName)
00025 ("displayLocation", "1")
00026 )
00027 ;
00028
00029
00030 delete fileLog;
00031
00032
00033 EXPECT_TRUE(boost::filesystem::remove(boost::filesystem::path(infoFileName)));
00034 EXPECT_TRUE(boost::filesystem::remove(boost::filesystem::path(warningFileName)));
00035 }