Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
67 0 0 0 100% 5.354

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.chabala.brick.controllab.sensor 6 0 0 0 100% 0.04
org.chabala.brick.controllab 61 0 0 0 100% 5.314

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.chabala.brick.controllab.sensor

Class Tests Errors Failures Skipped Success Rate Time
TouchSensorListenerTest 1 0 0 0 100% 0.005
SensorValueTest 3 0 0 0 100% 0.001
BinaryStringFormatterTest 1 0 0 0 100% 0.005
LightSensorListenerTest 1 0 0 0 100% 0.029

org.chabala.brick.controllab

Class Tests Errors Failures Skipped Success Rate Time
InputTest 3 0 0 0 100% 0.013
KeepAliveMonitorTest 3 0 0 0 100% 2.821
JsscSerialPortTest 15 0 0 0 100% 0.546
OutputTest 6 0 0 0 100% 0.046
PowerLevelTest 5 0 0 0 100% 0.002
InputIdTest 3 0 0 0 100% 0.01
OutputIdTest 8 0 0 0 100% 0.027
StopButtonTest 5 0 0 0 100% 1.292
JsscSerialPortFactoryTest 2 0 0 0 100% 0.323
ControlLabTest 9 0 0 0 100% 0.231
DirectionTest 2 0 0 0 100% 0.003

Test Cases

[Summary] [Package List] [Test Cases]

InputTest

testRemoveListener 0.007
testToString 0.002
testAddListener 0.003

TouchSensorListenerTest

testTouchSensorEventReceived 0.005

KeepAliveMonitorTest

testResetPreventsKeepAlives 0.81
testMonitorSendsKeepAlives 1.006
testClosePreventsKeepAlives 1.004

JsscSerialPortTest

testWriteByteDelegatesToJssc 0.496
testOpenPortOnlyThrowsIOExceptions 0.012
testAddEventListenerOnlyThrowsIOExceptions 0.004
testWriteByteArrayOnlyThrowsIOExceptions 0.004
testOpenPortDelegatesToJssc 0.003
testGetPortNameDelegatesToJssc 0
testReadBytesOnlyThrowsIOExceptions 0.003
testWriteByteArrayDelegatesToJssc 0.002
testCloseOnlyThrowsIOExceptions 0.009
testAddEventListenerDelegatesToJssc 0
testCloseWhenClosed 0
testIsOpenDelegatesToJssc 0
testReadBytesDelegatesToJssc 0.002
testCloseWhenOpen 0.002
testWriteByteOnlyThrowsIOExceptions 0.002

SensorValueTest

testMinimumPossibleValues 0
testValueSeparation 0
testMaximumPossibleValues 0

BinaryStringFormatterTest

testPrintByteInBinary 0.005

OutputTest

testSetPowerLevel 0.031
testTurnOff 0.001
testToString 0.001
testReverseDirection 0.002
testGetOutputIdSet 0.002
testTurnOn 0.002

PowerLevelTest

testEveryPowerLevelHasAUniqueCode 0
testPowerLevelEightHasCorrectCode 0
testPowerLevelZeroHasCorrectCode 0
testPowerLevelOneHasCorrectCode 0
testThereAreNinePowerLevels 0

LightSensorListenerTest

testLightSensorEventReceived 0.028

InputIdTest

testThereAreEightInputs 0.003
testThereAreFourPassiveInputs 0.003
testThereAreFourActiveInputs 0.002

OutputIdTest

testByteWithHighBitSetDecodesToOutputH 0.001
testByteWithAllBitsSetDecodesToAllOutputs 0
testByteWithLowBitSetDecodesToOutputA 0
testOutputAEncodesByteWithLowBitSet 0
testThereAreEightOutputs 0
testByteWithEvenBitsSetDecodesToOutputsBDFH 0.001
testAllOutputSetEncodesByteWithAllBitsSet 0
testOutputHEncodesByteWithHighBitSet 0.001

StopButtonTest

testNoEventsWhenStoppedAndStopNotReleased 0.951
testStopReleasedEventWhenStoppedAndStopReleased 0.006
testNoEventsWhenNotStoppedAndStopNotPressed 0.003
testStopPressedEventWhenNotStoppedAndStopPressed 0.007
testStopButtonIsInitiallyNotStopped 0.002

JsscSerialPortFactoryTest

getSerialPort 0.012
getAvailablePorts 0.31

ControlLabTest

testGetOutputGroupDelegatesInTheSingleCase 0.186
testOpen 0.015
testToString 0.002
testGetAvailablePorts 0.005
testToStringWhenConnected 0.006
testGetConnectedPortNameWhenNotConnected 0.002
testGetOutput 0.002
testGetOutputGroup 0.002
testGetConnectedPortNameWhenConnected 0.006

DirectionTest

testEveryDirectionHasAUniqueCode 0
testThereAreThreeDirections 0