27#include <boost/lexical_cast.hpp>
29using boost::lexical_cast;
77 uint num{firstVal (arg)};
81 cout <<
_Fmt(
"testing TargetObj(%d) as Singleton\n") % num;
86 CHECK (isSameObject(t1, t2),
"not a Singleton, got two different instances." );
88 cout <<
"calling a non-static method on the Singleton instance" <<endl
Access point to singletons and other kinds of dependencies designated by type.
Helper to abstract creation and lifecycle of a dependency.
virtual void run(Arg arg)
Target object to be instantiated as Singleton Allocates a variable amount of additional heap memory a...
static void setCountParam(uint c)
Target object to be created by Test-Factories or as Singleton.
A front-end for using printf-style formatting.
Singleton services and Dependency Injection.
Implementation namespace for support and library code.
Test runner and basic definitions for tests.
bool isSameObject(A const &a, B const &b)
compare plain object identity, based directly on the referee's memory identities.
bool isnil(lib::time::Duration const &dur)
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
Dummy target object to be created by factory for unit tests Used to verify sane memory management and...
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...