Dataflow Runtime API  4.0.1.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
unitTestHelper::MockTestBase Class Reference

Base class for all UnitTests which use the mocking infrastructure. More...

#include <Imt.Base.Dff.UnitTest.Helper/MockTestBase.h>

Inheritance diagram for unitTestHelper::MockTestBase:
unitTestHelper::TestBase

Public Member Functions

void baseSetUp ()
 Setup test. More...
 
void baseTearDown ()
 Tear down test. More...
 
- Public Member Functions inherited from unitTestHelper::TestBase
virtual void testBaseSetUp ()
 Setup test. More...
 
virtual void testBaseTearDown ()
 Tear down test. More...
 

Static Public Member Functions

static void baseAssemblySetUp (TestContext ^ context)
 Setup assembly. More...
 
static void baseAssemblyTearDown ()
 Test assembly cleanup. More...
 
- Static Public Member Functions inherited from unitTestHelper::TestBase
static void testBaseAssemblySetUp (vid)
 Setup test assembly. More...
 
static void testBaseAssemblyTearDown ()
 Tear down test assembly. More...
 

Protected Member Functions

virtual void assertNoMessagesSent ()
 Asserts that no messages have been sent on any channel. More...
 
void assertUnexpectedMessage (::imt::base::dff::activeparts::test::ChannelMockIn *pChannelIn, uint16_t protocolId)
 Asserts that a debug assertion is triggered on the given message. More...
 
void assertUnexpectedTimer (::imt::base::dff::activeparts::test::ChannelMockIn *pChannelIn)
 Asserts that a debug assertion is triggered on a timer event. More...
 

Detailed Description

Base class for all UnitTests which use the mocking infrastructure.

Clears the runtime mock and activates the memory leak detector.

Member Function Documentation

◆ assertNoMessagesSent()

virtual void unitTestHelper::MockTestBase::assertNoMessagesSent ( )
inlineprotectedvirtual

Asserts that no messages have been sent on any channel.

Must be implemented in the actual test class.

◆ assertUnexpectedMessage()

void unitTestHelper::MockTestBase::assertUnexpectedMessage ( ::imt::base::dff::activeparts::test::ChannelMockIn pChannelIn,
uint16_t  protocolId 
)
inlineprotected

Asserts that a debug assertion is triggered on the given message.

Parameters
pChannelIntest message is send over this channel.
protocolIdprotocol identifier to test with.

◆ assertUnexpectedTimer()

void unitTestHelper::MockTestBase::assertUnexpectedTimer ( ::imt::base::dff::activeparts::test::ChannelMockIn pChannelIn)
inlineprotected

Asserts that a debug assertion is triggered on a timer event.

Parameters
pChannelInpassed message is send over this channel.

◆ baseAssemblySetUp()

static void unitTestHelper::MockTestBase::baseAssemblySetUp ( TestContext ^  context)
inlinestatic

Setup assembly.

Parameters
contextThe test context

◆ baseAssemblyTearDown()

static void unitTestHelper::MockTestBase::baseAssemblyTearDown ( )
inlinestatic

Test assembly cleanup.

◆ baseSetUp()

void unitTestHelper::MockTestBase::baseSetUp ( )
inline

Setup test.

◆ baseTearDown()

void unitTestHelper::MockTestBase::baseTearDown ( )
inline

Tear down test.


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