Lumiera  0.pre.03
»edit your freedom«
HandlingPatternBasics_test Class Reference

Description

Test:
operate and verify a simple dummy command handling pattern.
Note
this test covers mainly the behaviour of a handling pattern as a concept, not so much the behaviour of the (standard) handling pattern implementations.
See also
HandlingPattern
BasicHandlingPattern
command.hpp
command-basic-test.cpp

Definition at line 122 of file handling-pattern-basics-test.cpp.

Private Member Functions

PCommandImpl buildTestCommand (CommandRegistry &registry)
 create a command implementation frame usable for tests. More...
 
void checkExec (PCommandImpl com)
 
void checkUndo (PCommandImpl com)
 
virtual void run (Arg)
 
void useCustomHandler (PCommandImpl com)
 

Private Attributes

uint cnt_inst
 

Member Function Documentation

◆ buildTestCommand()

PCommandImpl buildTestCommand ( CommandRegistry registry)
inlineprivate

create a command implementation frame usable for tests.

This simulates what normally happens within a CommandDef. The created CommandImpl isn't registered, and thus will just go away when the smart-ptr leaves scope.

Definition at line 154 of file handling-pattern-basics-test.cpp.

◆ checkExec()

void checkExec ( PCommandImpl  com)
inlineprivate
Test:
verify the Handling pattern API: execute a command

Definition at line 179 of file handling-pattern-basics-test.cpp.

◆ checkUndo()

void checkUndo ( PCommandImpl  com)
inlineprivate
Test:
verify the Handling pattern API: undo a command

Definition at line 205 of file handling-pattern-basics-test.cpp.

◆ useCustomHandler()

void useCustomHandler ( PCommandImpl  com)
inlineprivate
Test:
use custom implementation of the HandlingPattern interface, rigged to verify the functions are actually invoked.

Definition at line 225 of file handling-pattern-basics-test.cpp.

+ Inheritance diagram for HandlingPatternBasics_test:
+ Collaboration diagram for HandlingPatternBasics_test:

The documentation for this class was generated from the following file: