Dataflow Runtime API  2.7.2.0
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 (void)
 Setup test.
 
void baseTearDown (void)
 Tear down test.
 
- Public Member Functions inherited from unitTestHelper::TestBase
virtual void testBaseSetUp (void)
 Setup test. More...
 
virtual void testBaseTearDown (void)
 Tear down test. More...
 

Protected Member Functions

virtual void assertNoMessagesSent (void)
 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 ( void  )
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.

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