1 /*****************************************************************************\
3 * Name : test_boilerplate *
4 * Author : Chris Koeritz *
8 * Puts an object through its pacess--this is intended to provide the basic *
9 * framework for a unit test using the hoople testing framework. *
11 *******************************************************************************
12 * Copyright (c) 2011-$now By Author. This program is free software; you can *
13 * redistribute it and/or modify it under the terms of the GNU General Public *
14 * License as published by the Free Software Foundation; either version 2 of *
15 * the License or (at your option) any later version. This is online at: *
16 * http://www.fsf.org/copyleft/gpl.html *
17 * Please send any updates to: fred@gruntose.com *
18 \*****************************************************************************/
20 #include <application/hoople_main.h>
21 #include <basis/functions.h>
22 #include <basis/guards.h>
23 #include <loggers/combo_logger.h>
24 #include <structures/static_memory_gremlin.h>
25 #include <unit_test/unit_base.h>
30 using namespace application;
31 using namespace basis;
32 using namespace filesystem;
33 using namespace loggers;
34 using namespace unit_test;
36 #define LOG(to_print) EMERGENCY_LOG(program_wide_logger::get(), to_print)
40 class test_boilerplate : virtual public unit_base, virtual public application_shell
43 test_boilerplate() : unit_base() {}
44 DEFINE_CLASS_NAME("test_boilerplate");
45 virtual int execute();
48 HOOPLE_MAIN(test_boilerplate, );
52 int test_boilerplate::execute()
56 ASSERT_TRUE(true, "true is somehow not true?");
57 return final_report();