7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for component factory"
10 #include <boost/test/unit_test.hpp>
18 using namespace boost;
40 static std::string
type_name () {
return "CAbstract"; }
50 static std::string
type_name () {
return "CConcrete1"; }
64 boost::shared_ptr<CAbstract> ptr = build_component_abstract_type< CAbstract >(
"cf3.common.CConcrete1",
"acomp");
68 Core::instance().root().add_component(ptr);
80 BOOST_AUTO_TEST_SUITE_END()
std::string name(ComponentWrapper &self)
~Builder_fixture()
common tear-down for each test case
external boost library namespace
Helper class to create the Builder and place it in the factory.
CAbstract(const std::string &name)
static std::string type_name()
Top-level namespace for coolfluid.
BOOST_AUTO_TEST_CASE(registration)
Builder_fixture()
common setup for each test case
CConcrete1(const std::string &name)
Base class for defining CF components.
Most basic kernel library.
bool is_not_null(T ptr)
predicate for comparison to nullptr
static std::string type_name()