50 using interact::UICoord;
97 auto location =
UICoord{
"win-1",
"persp-A",
"thePanel",
"someView",
"tab#5"};
100 fakeDirectory->existingPath = location;
101 fakeDirectory->response.reset (
new DummyTab);
104 auto answer = accessAPI().access<
DummyWidget> (location);
106 CHECK (answer.isValid());
109 CHECK (isSameObject (widget, *fakeDirectory->response));
121 auto path =
UICoord{
"win-1",
"persp-A",
"thePanel"};
122 auto location =
UICoord{
"win-1",
"persp-A",
"thePanel",
"someView"};
125 fakeDirectory->existingPath = path;
126 CHECK (not fakeDirectory->response);
130 CHECK ( fakeDirectory->response);
131 CHECK (isSameObject (view, *fakeDirectory->response));
138 UNIMPLEMENTED (
"limit creation of new sibling objects");
145 UNIMPLEMENTED (
"create a new path from scratch");
Configuration handle for temporarily shadowing a dependency by a test mock instance.
MOC & triggerCreate()
trigger lazy service object instantiation
Access point to singletons and other kinds of dependencies designated by type.
Describe a location within the UI through structural/topological coordinates.
void verify_limitedCreate()
void verify_standardUsage()
void verify_createNewPath()
void verify_simpleAccess()
Mock implementation of the model::ElementAccess interface for testing without actual UI.
Per type specific configuration of instances created as service dependencies.
Lumiera GTK UI implementation root.
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.
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
Unit test helper for access to UI elements without actually running an UI.
A collection of frequently used helper functions to support unit testing.
A topological addressing scheme to designate structural locations within the UI.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
#define INSTANCEOF(CLASS, EXPR)
shortcut for subclass test, intended for assertions only.