TwiceAsNice  2019-02-18
Classes | Functions
IODeviceWutTest.cc File Reference

This unit test started as a learning test for IODeviceWut. More...

#include <string>
#include <map>
#include <boost/test/unit_test.hpp>
#include "IODeviceWut.h"
#include "BasicIODeviceWutTestFixture.h"
#include <boost/shared_ptr.hpp>
#include <Nice/App/Application.h>
#include <Nice/Property/Joint.h>
#include <Nice/Qt/LineEditAttributeName.h>
Include dependency graph for IODeviceWutTest.cc:

Classes

struct  Fixture
 

Functions

 BOOST_FIXTURE_TEST_SUITE (IODeviceWuts, Fixture)
 
 BOOST_AUTO_TEST_CASE (ShouldBeConstructableWithOneIoPart)
 
 BOOST_AUTO_TEST_CASE (ShouldComputeNumberOfPorts)
 
 BOOST_AUTO_TEST_CASE (ShouldBeConstructableWithTwoIdenticalIoParts)
 
 BOOST_AUTO_TEST_CASE (ShouldConvertPortStateToString)
 
 BOOST_AUTO_TEST_CASE (ShouldProvideNameInPropertyTree)
 
 BOOST_AUTO_TEST_CASE (ShouldApplyLineEditColorSchemeAttributeForInputStatus)
 
 BOOST_AUTO_TEST_CASE (ShouldApplyLineEditColorSchemeAttributeForOutputStatus)
 
 BOOST_AUTO_TEST_CASE (ShouldKeepLineEditColorScheme)
 
 BOOST_AUTO_TEST_CASE (ShouldHaveUnknownInputAndOutputPortStatusAfterInitialized)
 
 BOOST_AUTO_TEST_CASE (ShouldConsiderPropertyForMaximumAllowedNetworkServiceDelay)
 
 BOOST_AUTO_TEST_CASE (ShouldConsiderPropertyForPollCycleTime)
 
 BOOST_AUTO_TEST_CASE (ShouldProvideOutputSetterCommandWithAttribute)
 
 BOOST_AUTO_TEST_CASE (ShouldHaveUnavailableDeviceWhenConstructed)
 
 BOOST_AUTO_TEST_CASE (ShouldUpdatePropertyWhenBeingReachable)
 
 BOOST_AUTO_TEST_CASE (ShouldUpdatePropertyWhenBeingUnreachable)
 
 BOOST_AUTO_TEST_CASE (ShouldSetOnOutputPortWhenReceivingCommand)
 
 BOOST_AUTO_TEST_CASE (ShouldSetOffOutputPortWhenReceivingCommand)
 
 BOOST_AUTO_TEST_CASE (ShouldIgnoreOutputPortSettingCommandWhenNotOpened)
 
 BOOST_AUTO_TEST_CASE (ShouldKeepBackNetworkExceptionsWhenReadingPortStates)
 
 BOOST_AUTO_TEST_CASE (ShouldMarkPortStatesAsUnknownWhenWebSocketHasFailed)
 
 BOOST_AUTO_TEST_CASE (ShouldKeepBackNetworkExceptionsWhenReadingPortState)
 
 BOOST_AUTO_TEST_CASE (ShouldKeepBackNetworkExceptionsWhenSettingPortState)
 
 BOOST_AUTO_TEST_CASE (ShouldSetOutputPort)
 
 BOOST_AUTO_TEST_CASE (ShouldReadOutputPort)
 
 BOOST_AUTO_TEST_CASE (ShouldBeAbleToRead)
 
 BOOST_AUTO_TEST_CASE (ShouldNotThrowExceptionWhenActingAsDevice)
 
 BOOST_AUTO_TEST_CASE (ShouldHaveSetOffCommandInPropertyTree)
 
 BOOST_AUTO_TEST_CASE (ShouldSendSetOffOutputPortCommand)
 
 BOOST_AUTO_TEST_CASE (ShouldIgnoreSetOffOutputPortCommandWhenNotOpen)
 
 BOOST_AUTO_TEST_CASE (ShouldHaveSetOnCommandInPropertyTree)
 
 BOOST_AUTO_TEST_CASE (ShouldSendSetOnOutputPortCommand)
 
 BOOST_AUTO_TEST_CASE (ShouldIgnoreSetOnOutputPortCommandWhenNotOpen)
 
 BOOST_AUTO_TEST_CASE (ShouldReuseWebSocketWhenReadingBackStates)
 
 BOOST_AUTO_TEST_CASE (ShouldUpdateReachabilityStatusWhenSettingOutputPort)
 
 BOOST_AUTO_TEST_CASE (ShouldUpdateReachabilityStatusWhenReadingOutputPort)
 
 BOOST_AUTO_TEST_CASE (ShouldUpdateReachabilityStatusWhenReadingAllIOStates)
 
 BOOST_AUTO_TEST_CASE (ShouldCreateNewWebSocketAfterReadRequestFailure)
 
 BOOST_AUTO_TEST_CASE (ShouldReuseWebSockeWhenWritingIoPort)
 
 BOOST_AUTO_TEST_CASE (ShouldCreateNewWebSocketAfterWriteRequestFailure)
 
 BOOST_AUTO_TEST_CASE (ShouldUseDifferentWebSocketForReadAndWriteRequests)
 
 BOOST_AUTO_TEST_SUITE_END ()
 

Detailed Description

This unit test started as a learning test for IODeviceWut.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/40]

BOOST_AUTO_TEST_CASE ( ShouldBeConstructableWithOneIoPart  )

◆ BOOST_AUTO_TEST_CASE() [2/40]

BOOST_AUTO_TEST_CASE ( ShouldComputeNumberOfPorts  )

◆ BOOST_AUTO_TEST_CASE() [3/40]

BOOST_AUTO_TEST_CASE ( ShouldBeConstructableWithTwoIdenticalIoParts  )

◆ BOOST_AUTO_TEST_CASE() [4/40]

BOOST_AUTO_TEST_CASE ( ShouldConvertPortStateToString  )

◆ BOOST_AUTO_TEST_CASE() [5/40]

BOOST_AUTO_TEST_CASE ( ShouldProvideNameInPropertyTree  )

◆ BOOST_AUTO_TEST_CASE() [6/40]

BOOST_AUTO_TEST_CASE ( ShouldApplyLineEditColorSchemeAttributeForInputStatus  )

◆ BOOST_AUTO_TEST_CASE() [7/40]

BOOST_AUTO_TEST_CASE ( ShouldApplyLineEditColorSchemeAttributeForOutputStatus  )

◆ BOOST_AUTO_TEST_CASE() [8/40]

BOOST_AUTO_TEST_CASE ( ShouldKeepLineEditColorScheme  )

◆ BOOST_AUTO_TEST_CASE() [9/40]

BOOST_AUTO_TEST_CASE ( ShouldHaveUnknownInputAndOutputPortStatusAfterInitialized  )

◆ BOOST_AUTO_TEST_CASE() [10/40]

BOOST_AUTO_TEST_CASE ( ShouldConsiderPropertyForMaximumAllowedNetworkServiceDelay  )

◆ BOOST_AUTO_TEST_CASE() [11/40]

BOOST_AUTO_TEST_CASE ( ShouldConsiderPropertyForPollCycleTime  )

◆ BOOST_AUTO_TEST_CASE() [12/40]

BOOST_AUTO_TEST_CASE ( ShouldProvideOutputSetterCommandWithAttribute  )

◆ BOOST_AUTO_TEST_CASE() [13/40]

BOOST_AUTO_TEST_CASE ( ShouldHaveUnavailableDeviceWhenConstructed  )

◆ BOOST_AUTO_TEST_CASE() [14/40]

BOOST_AUTO_TEST_CASE ( ShouldUpdatePropertyWhenBeingReachable  )

◆ BOOST_AUTO_TEST_CASE() [15/40]

BOOST_AUTO_TEST_CASE ( ShouldUpdatePropertyWhenBeingUnreachable  )

◆ BOOST_AUTO_TEST_CASE() [16/40]

BOOST_AUTO_TEST_CASE ( ShouldSetOnOutputPortWhenReceivingCommand  )

◆ BOOST_AUTO_TEST_CASE() [17/40]

BOOST_AUTO_TEST_CASE ( ShouldSetOffOutputPortWhenReceivingCommand  )

◆ BOOST_AUTO_TEST_CASE() [18/40]

BOOST_AUTO_TEST_CASE ( ShouldIgnoreOutputPortSettingCommandWhenNotOpened  )

◆ BOOST_AUTO_TEST_CASE() [19/40]

BOOST_AUTO_TEST_CASE ( ShouldKeepBackNetworkExceptionsWhenReadingPortStates  )

◆ BOOST_AUTO_TEST_CASE() [20/40]

BOOST_AUTO_TEST_CASE ( ShouldMarkPortStatesAsUnknownWhenWebSocketHasFailed  )

◆ BOOST_AUTO_TEST_CASE() [21/40]

BOOST_AUTO_TEST_CASE ( ShouldKeepBackNetworkExceptionsWhenReadingPortState  )

◆ BOOST_AUTO_TEST_CASE() [22/40]

BOOST_AUTO_TEST_CASE ( ShouldKeepBackNetworkExceptionsWhenSettingPortState  )

◆ BOOST_AUTO_TEST_CASE() [23/40]

BOOST_AUTO_TEST_CASE ( ShouldSetOutputPort  )

◆ BOOST_AUTO_TEST_CASE() [24/40]

BOOST_AUTO_TEST_CASE ( ShouldReadOutputPort  )

◆ BOOST_AUTO_TEST_CASE() [25/40]

BOOST_AUTO_TEST_CASE ( ShouldBeAbleToRead  )

◆ BOOST_AUTO_TEST_CASE() [26/40]

BOOST_AUTO_TEST_CASE ( ShouldNotThrowExceptionWhenActingAsDevice  )

◆ BOOST_AUTO_TEST_CASE() [27/40]

BOOST_AUTO_TEST_CASE ( ShouldHaveSetOffCommandInPropertyTree  )

◆ BOOST_AUTO_TEST_CASE() [28/40]

BOOST_AUTO_TEST_CASE ( ShouldSendSetOffOutputPortCommand  )

◆ BOOST_AUTO_TEST_CASE() [29/40]

BOOST_AUTO_TEST_CASE ( ShouldIgnoreSetOffOutputPortCommandWhenNotOpen  )

◆ BOOST_AUTO_TEST_CASE() [30/40]

BOOST_AUTO_TEST_CASE ( ShouldHaveSetOnCommandInPropertyTree  )

◆ BOOST_AUTO_TEST_CASE() [31/40]

BOOST_AUTO_TEST_CASE ( ShouldSendSetOnOutputPortCommand  )

◆ BOOST_AUTO_TEST_CASE() [32/40]

BOOST_AUTO_TEST_CASE ( ShouldIgnoreSetOnOutputPortCommandWhenNotOpen  )

◆ BOOST_AUTO_TEST_CASE() [33/40]

BOOST_AUTO_TEST_CASE ( ShouldReuseWebSocketWhenReadingBackStates  )

◆ BOOST_AUTO_TEST_CASE() [34/40]

BOOST_AUTO_TEST_CASE ( ShouldUpdateReachabilityStatusWhenSettingOutputPort  )

◆ BOOST_AUTO_TEST_CASE() [35/40]

BOOST_AUTO_TEST_CASE ( ShouldUpdateReachabilityStatusWhenReadingOutputPort  )

◆ BOOST_AUTO_TEST_CASE() [36/40]

BOOST_AUTO_TEST_CASE ( ShouldUpdateReachabilityStatusWhenReadingAllIOStates  )

◆ BOOST_AUTO_TEST_CASE() [37/40]

BOOST_AUTO_TEST_CASE ( ShouldCreateNewWebSocketAfterReadRequestFailure  )

◆ BOOST_AUTO_TEST_CASE() [38/40]

BOOST_AUTO_TEST_CASE ( ShouldReuseWebSockeWhenWritingIoPort  )

◆ BOOST_AUTO_TEST_CASE() [39/40]

BOOST_AUTO_TEST_CASE ( ShouldCreateNewWebSocketAfterWriteRequestFailure  )

◆ BOOST_AUTO_TEST_CASE() [40/40]

BOOST_AUTO_TEST_CASE ( ShouldUseDifferentWebSocketForReadAndWriteRequests  )

◆ BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END ( )

◆ BOOST_FIXTURE_TEST_SUITE()

BOOST_FIXTURE_TEST_SUITE ( IODeviceWuts  ,
Fixture   
)