AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | List of all members
EM::Tests::TestCardSeparateInterchangeForFellows Class Reference

TestCardSeparateInterchangeForFellows - Test for separate interchange of fellow travellers. Every fellow traveller OWT is written on separate ticketIndex. Interchange is done for single passenger at once (separate issue for owner, separate issue for first fellow, ...). More...

#include <TestCardSeparateInterchangeForFellows.h>

Inheritance diagram for EM::Tests::TestCardSeparateInterchangeForFellows:
Inheritance graph
[legend]
Collaboration diagram for EM::Tests::TestCardSeparateInterchangeForFellows:
Collaboration graph
[legend]

Classes

class  DataClass
 

Public Member Functions

 TestCardSeparateInterchangeForFellows ()
 
virtual ~TestCardSeparateInterchangeForFellows ()
 
void setUp ()
 
void tearDown ()
 
void CheckInterchange ()
 
- Public Member Functions inherited from EM::Tests::TestVehicle
 TestVehicle (TicketIssueLogic::TicketIssueLogicTestWrapper *ticketIssueLogicTestWrapper)
 
virtual ~TestVehicle ()
 
void setUp ()
 
void tearDown ()
 
- Public Member Functions inherited from EM::Tests::TestCommon
 TestCommon (TicketIssueLogic::TicketIssueLogicTestWrapper *ticketIssueLogicTestWrapper)
 
virtual ~TestCommon ()
 
void setUp ()
 
void tearDown ()
 
TicketIssueLogic::TicketIssueLogicTestWrapperGetTicketIssueLogicWrapper ()
 GetTicketIssueLogicWrapper. More...
 
std::string Message (const QString &shortDescription, int returnValue)
 Message. More...
 
long GetTicketPriceFromOutputDataCollection ()
 GetTicketPriceFromOutputCollection. More...
 
long GetTicketDistance ()
 GetTicketDistance. More...
 
bool SetTemporaryTariffSystemSetting (const unsigned long tariffSystemSettingNumber, const long tariffSystemSettingValue)
 
bool SetTemporaryTariffPropertyValue (const unsigned long tariffTicketNumber, const unsigned long tariffPropertyID, const long tariffPropertyValue)
 
bool GetZonesOfPaidTicketSegments (std::list< unsigned long > &paidZones)
 
- Public Member Functions inherited from EM::Tests::TestCard
 TestCard ()
 
virtual ~TestCard ()
 
bool PrepareCardFacadeForTest ()
 
bool PrepareCardFacadeForTest (QString &inputCardDataFilePath)
 
void SimulateCardWrite ()
 
bool CheckWritingFacade ()
 
bool CheckWritingFacade (QString &resultCardDataFilePath)
 

Additional Inherited Members

- Static Public Member Functions inherited from EM::Tests::TestCard
static void SetOneWayTicketsValidity (const unsigned long validityStartTime, const unsigned long validityEndTime)
 
- Protected Member Functions inherited from EM::Tests::TestCommon
const QString & GetConfigurationFileName () const
 
void IssueTicketAndWriteStatistic ()
 

Detailed Description

TestCardSeparateInterchangeForFellows - Test for separate interchange of fellow travellers. Every fellow traveller OWT is written on separate ticketIndex. Interchange is done for single passenger at once (separate issue for owner, separate issue for first fellow, ...).

Line/trip: 3/2

Testcases:
1) Test_owner_issue.xml - Owner has two fellow travellers from first line/trip (3/1), they transfer to other line/trip (3/2). Only owner's ticket should make a transfer.
Input: Owner OWT + 2 fellow travellers (1 full + 1 reduced tariff), every ticket is on separate ticket index (0-2).
Result: Interchange should be made only on owner's ticket. There should be one ticket in statistics.

2) Test_first_fellow_issue_full_tariff.xml - Owner has two fellow travellers from first line/trip (3/1), owner has already made an interchange. Fellow traveller with full tariff should make a interchange.
Input: Owner OWT after interchange + 2 fellow travellers (1 full + 1 reduced tariff), every ticket is on separate ticket index (0-2).
Result: Interchange should be made only on fellow traveller's ticket with full tariff. There should be one ticket in statistics.

3) Test_first_fellow_issue_reduced_tariff.xml - Owner has two fellow travellers from first line/trip (3/1), owner has already made an interchange. Fellow traveller with reduced tariff should make a interchange.
Input: Owner OWT after interchange + 2 fellow travellers (1 full + 1 reduced tariff), every ticket is on separate ticket index (0-2).
Result: Interchange should be made only on fellow traveller's ticket with reduced tariff. There should be one ticket in statistics.

4) Test_second_fellow_issue_full_tariff.xml - Owner has two fellow travellers from first line/trip (3/1), owner and 'reduced' fellow have already made an interchange. Fellow traveller with full tariff should make a interchange.
Input: Owner OWT after interchange + 2 fellow travellers (1 full + 1 reduced tariff after interchange), every ticket is on separate ticket index (0-2).
Result: Interchange should be made only on fellow traveller's ticket with full tariff. There should be one ticket in statistics.

5) Test_second_fellow_issue_reduced_tariff.xml - Owner has two fellow travellers from first line/trip (3/1), owner and 'full' fellow have already made an interchange. Fellow traveller with reduced tariff should make a interchange.
Input: Owner OWT after interchange + 2 fellow travellers (1 full tariff after interchange + 1 reduced tariff), every ticket is on separate ticket index (0-2).
Result: Interchange should be made only on fellow traveller's ticket with reduced tariff. There should be one ticket in statistics.

6) Test_third_fellow_issue_reduced_tariff.xml - Owner has two fellow travellers from first line/trip (3/1), owner and both fellows have already made an interchange. We try to buy another fellow traveller in reduced tariff.
Input: Owner OWT after interchange + 2 fellow travellers (1 full + 1 reduced tariff), both after interchange. Every ticket is on separate ticket index (0-2).
Result: No interchange should be made. New fellow traveller with reduced tariff should be written to fourth ticketIndex. There should be one ticket in statistics.

Constructor & Destructor Documentation

TestCardSeparateInterchangeForFellows::TestCardSeparateInterchangeForFellows ( )
TestCardSeparateInterchangeForFellows::~TestCardSeparateInterchangeForFellows ( )
virtual

Member Function Documentation

void TestCardSeparateInterchangeForFellows::CheckInterchange ( )

Here is the call graph for this function:

void TestCardSeparateInterchangeForFellows::setUp ( )

Here is the call graph for this function:

void TestCardSeparateInterchangeForFellows::tearDown ( )

Here is the call graph for this function:


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