Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.012
org.chabala.brick.controllab 61 0 0 0 100% 5.29

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.001
SensorValueTest 3 0 0 0 100% 0.001
BinaryStringFormatterTest 1 0 0 0 100% 0.003
LightSensorListenerTest 1 0 0 0 100% 0.007

org.chabala.brick.controllab

Class Tests Errors Failures Skipped Success Rate Time
InputTest 3 0 0 0 100% 0.027
KeepAliveMonitorTest 3 0 0 0 100% 2.831
JsscSerialPortTest 15 0 0 0 100% 0.539
OutputTest 6 0 0 0 100% 0.052
PowerLevelTest 5 0 0 0 100% 0.003
InputIdTest 3 0 0 0 100% 0.01
OutputIdTest 8 0 0 0 100% 0.035
StopButtonTest 5 0 0 0 100% 1.267
JsscSerialPortFactoryTest 2 0 0 0 100% 0.291
ControlLabTest 9 0 0 0 100% 0.234
DirectionTest 2 0 0 0 100% 0.001

Test Cases

[Summary] [Package List] [Test Cases]

InputTest

testRemoveListener 0.013
testToString 0.001
testAddListener 0.011

TouchSensorListenerTest

testTouchSensorEventReceived 0

KeepAliveMonitorTest

testResetPreventsKeepAlives 0.814
testMonitorSendsKeepAlives 1.012
testClosePreventsKeepAlives 1.004

JsscSerialPortTest

testWriteByteDelegatesToJssc 0.48
testOpenPortOnlyThrowsIOExceptions 0.016
testAddEventListenerOnlyThrowsIOExceptions 0.004
testWriteByteArrayOnlyThrowsIOExceptions 0.001
testOpenPortDelegatesToJssc 0.002
testGetPortNameDelegatesToJssc 0.003
testReadBytesOnlyThrowsIOExceptions 0.002
testWriteByteArrayDelegatesToJssc 0.002
testCloseOnlyThrowsIOExceptions 0.002
testAddEventListenerDelegatesToJssc 0.002
testCloseWhenClosed 0.002
testIsOpenDelegatesToJssc 0.002
testReadBytesDelegatesToJssc 0.003
testCloseWhenOpen 0.002
testWriteByteOnlyThrowsIOExceptions 0.002

SensorValueTest

testMinimumPossibleValues 0
testValueSeparation 0
testMaximumPossibleValues 0

BinaryStringFormatterTest

testPrintByteInBinary 0.003

OutputTest

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

PowerLevelTest

testEveryPowerLevelHasAUniqueCode 0
testPowerLevelEightHasCorrectCode 0
testPowerLevelZeroHasCorrectCode 0
testPowerLevelOneHasCorrectCode 0.001
testThereAreNinePowerLevels 0

LightSensorListenerTest

testLightSensorEventReceived 0.005

InputIdTest

testThereAreEightInputs 0.003
testThereAreFourPassiveInputs 0.002
testThereAreFourActiveInputs 0.003

OutputIdTest

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

StopButtonTest

testNoEventsWhenStoppedAndStopNotReleased 0.929
testStopReleasedEventWhenStoppedAndStopReleased 0.009
testNoEventsWhenNotStoppedAndStopNotPressed 0.003
testStopPressedEventWhenNotStoppedAndStopPressed 0.007
testStopButtonIsInitiallyNotStopped 0.002

JsscSerialPortFactoryTest

getSerialPort 0
getAvailablePorts 0.289

ControlLabTest

testGetOutputGroupDelegatesInTheSingleCase 0.189
testOpen 0.013
testToString 0.002
testGetAvailablePorts 0.006
testToStringWhenConnected 0.01
testGetConnectedPortNameWhenNotConnected 0
testGetOutput 0.002
testGetOutputGroup 0.002
testGetConnectedPortNameWhenConnected 0.005

DirectionTest

testEveryDirectionHasAUniqueCode 0
testThereAreThreeDirections 0