TwiceAsNice
2019-02-18
|
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>
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 () | |
This unit test started as a learning test for IODeviceWut.
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 | ( | ) |
BOOST_FIXTURE_TEST_SUITE | ( | IODeviceWuts | , |
Fixture | |||
) |