TwiceAsNice  2019-02-18
Classes | Namespaces | Functions
PlinkPowerMeterImplTest.cc File Reference
#include <boost/test/unit_test.hpp>
#include <stdexcept>
#include "PlinkPowerMeterImpl.hpp"
#include "PowerMeterException.hpp"
#include "SerialLineFake.hpp"
Include dependency graph for PlinkPowerMeterImplTest.cc:

Classes

class  basda::gentec::TestablePlinkPowerMeterImpl
 
struct  Fixture
 
class  Fixture::ReadingFromSerialLineResult
 

Namespaces

 basda
 class TestOpencvApp
 
 basda::gentec
 

Functions

 BOOST_FIXTURE_TEST_SUITE (PlinkPowerMeters, Fixture)
 
 BOOST_AUTO_TEST_CASE (ShouldProvideValidMeasuredPowerAfterConstruction)
 
 BOOST_AUTO_TEST_CASE (ShouldSetWavelengthTo532nm)
 
 BOOST_AUTO_TEST_CASE (ShouldSetMaximumAnalogOutputPowerTo70Watt)
 
 BOOST_AUTO_TEST_CASE (ShouldReadCurrentPower)
 
 BOOST_AUTO_TEST_CASE (ShouldThrowExceptionWhenNoAckArrivedWhileMeasuring)
 
 BOOST_AUTO_TEST_CASE (ShouldThrowExceptionWhenNoValidMeasurementArrives)
 
 BOOST_AUTO_TEST_CASE (ShouldThrowExceptionWhenCommandIsNotTransferredCompletely)
 
 BOOST_AUTO_TEST_CASE (ShouldReset)
 
 BOOST_AUTO_TEST_CASE (ShouldReportAccessibility)
 
 BOOST_AUTO_TEST_CASE (ShouldReportUnreachabilityWhenResponseIsMissing)
 
 BOOST_AUTO_TEST_CASE (ShouldReportUnreachabilityInCaseOfException)
 
 BOOST_AUTO_TEST_CASE (ShouldForwardExceptionsWhenReadingFromSerialLineFails)
 
 BOOST_AUTO_TEST_CASE (ShouldForwardExceptionsWhenWritingFromSerialLineFails)
 
 BOOST_AUTO_TEST_SUITE_END ()
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/13]

BOOST_AUTO_TEST_CASE ( ShouldProvideValidMeasuredPowerAfterConstruction  )

◆ BOOST_AUTO_TEST_CASE() [2/13]

BOOST_AUTO_TEST_CASE ( ShouldSetWavelengthTo532nm  )

◆ BOOST_AUTO_TEST_CASE() [3/13]

BOOST_AUTO_TEST_CASE ( ShouldSetMaximumAnalogOutputPowerTo70Watt  )

◆ BOOST_AUTO_TEST_CASE() [4/13]

BOOST_AUTO_TEST_CASE ( ShouldReadCurrentPower  )

◆ BOOST_AUTO_TEST_CASE() [5/13]

BOOST_AUTO_TEST_CASE ( ShouldThrowExceptionWhenNoAckArrivedWhileMeasuring  )

◆ BOOST_AUTO_TEST_CASE() [6/13]

BOOST_AUTO_TEST_CASE ( ShouldThrowExceptionWhenNoValidMeasurementArrives  )

◆ BOOST_AUTO_TEST_CASE() [7/13]

BOOST_AUTO_TEST_CASE ( ShouldThrowExceptionWhenCommandIsNotTransferredCompletely  )

◆ BOOST_AUTO_TEST_CASE() [8/13]

BOOST_AUTO_TEST_CASE ( ShouldReset  )

◆ BOOST_AUTO_TEST_CASE() [9/13]

BOOST_AUTO_TEST_CASE ( ShouldReportAccessibility  )

◆ BOOST_AUTO_TEST_CASE() [10/13]

BOOST_AUTO_TEST_CASE ( ShouldReportUnreachabilityWhenResponseIsMissing  )

◆ BOOST_AUTO_TEST_CASE() [11/13]

BOOST_AUTO_TEST_CASE ( ShouldReportUnreachabilityInCaseOfException  )

◆ BOOST_AUTO_TEST_CASE() [12/13]

BOOST_AUTO_TEST_CASE ( ShouldForwardExceptionsWhenReadingFromSerialLineFails  )

◆ BOOST_AUTO_TEST_CASE() [13/13]

BOOST_AUTO_TEST_CASE ( ShouldForwardExceptionsWhenWritingFromSerialLineFails  )

◆ BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END ( )

◆ BOOST_FIXTURE_TEST_SUITE()

BOOST_FIXTURE_TEST_SUITE ( PlinkPowerMeters  ,
Fixture   
)