Summary

[ summary] [ package list] [ test cases]

TestsErrorsFailuresSuccess rateTime(s)
12900100,00%4,07

Note: failuresare anticipated and checked for with assertions while errorsare unanticipated.

Package List

[ summary] [ package list] [ test cases]

PackageTestsErrorsFailuresSuccess RateTime
jtge.engine.command 600100,00%0,06
jtge.engine.data 600100,00%0,08
jtge.engine.handler 700100,00%0,11
jtge.engine.io 4500100,00%1,69
jtge.engine.net 1000100,00%1,47
jtge.engine.security 800100,00%0,09
jtge.util 700100,00%0,25
jtge.util.grid 1400100,00%0,08
jtge.util.grid.hex.builder 200100,00%0,06
jtge.util.grid.hex.directiongroup 400100,00%0,06
jtge.util.grid.square.directiongroup 200100,00%0,03
jtge.util.grid.torus 800100,00%0,02
jtge.util.random 1000100,00%0,08

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

jtge.engine.command

ClassTestsErrorsFailuresSuccess RateTime
Success FlowTest 600100,00%0,062

jtge.engine.data

ClassTestsErrorsFailuresSuccess RateTime
Success ContextTest 400100,00%0,031
Success ResolverTest 200100,00%0,046

jtge.engine.handler

ClassTestsErrorsFailuresSuccess RateTime
Success BufferTest 400100,00%0,047
Success FilterTest 100100,00%0,031
Success SubjectTest 200100,00%0,031

jtge.engine.io

ClassTestsErrorsFailuresSuccess RateTime
Success AsynchronousInputTest 100100,00%0,047
Success ChannelManagerTest 500100,00%0,031
Success FileInputConnectorTest 200100,00%0,032
Success FileOutputConnectorTest 200100,00%0,047
Success InputTest 600100,00%0,047
Success ObjectInputTest 700100,00%0,235
Success ObjectOutputTest 600100,00%0,234
Success OutputTest 300100,00%0,047
Success XStreamInputTest 700100,00%0,609
Success XStreamOutputTest 600100,00%0,359

jtge.engine.net

ClassTestsErrorsFailuresSuccess RateTime
Success NetworkAcceptorTest 700100,00%0,343
Success NetworkConnectorTest 300100,00%1,125

jtge.engine.security

ClassTestsErrorsFailuresSuccess RateTime
Success LoginHandlerTest 400100,00%0,047
Success UserManagerTest 400100,00%0,047

jtge.util

ClassTestsErrorsFailuresSuccess RateTime
Success EasyMockTestCaseTest 700100,00%0,250

jtge.util.grid

ClassTestsErrorsFailuresSuccess RateTime
Success AdjacentTileIteratorTest 200100,00%0,031
Success CoordinateTest 200100,00%0,000
Success GridUtilTest 200100,00%0,015
Success HexagonGridTest 600100,00%0,016
Success LinearTileIteratorTest 200100,00%0,016

jtge.util.grid.hex.builder

ClassTestsErrorsFailuresSuccess RateTime
Success PeakHexagonBuilderTest 200100,00%0,062

jtge.util.grid.hex.directiongroup

ClassTestsErrorsFailuresSuccess RateTime
Success FlatHexagonDirectionGroupTest 100100,00%0,016
Success FlatShiftedHexagonDirectionGroupTest 100100,00%0,016
Success PeakHexagonDirectionGroupTest 100100,00%0,015
Success PeakShiftedHexagonDirectionGroupTest 100100,00%0,015

jtge.util.grid.square.directiongroup

ClassTestsErrorsFailuresSuccess RateTime
Success EightDirectionGroupTest 100100,00%0,015
Success FourDirectionGroupTest 100100,00%0,015

jtge.util.grid.torus

ClassTestsErrorsFailuresSuccess RateTime
Success HorizontalTorusTest 400100,00%0,000
Success VerticalTorusTest 400100,00%0,015

jtge.util.random

ClassTestsErrorsFailuresSuccess RateTime
Success RandomIteratorTest 500100,00%0,031
Success RandomTest 500100,00%0,047

Test Cases

[ summary] [ package list] [ test cases]

FlowTest

Success testEqualsNull0,03
Success testEquals0,00
Success testExecute0,02
Success testFilter0,00
Success testFilterOutAllCommandsReturnsNull0,00
Success testSort0,00

ContextTest

Success testSetterCalledWhenPuttingCustomData0,03
Success testInterfaceSetterCalledWhenPuttingCustomData0,00
Success testRegisterNullKeyThrowsException0,00
Success testRegisterNullDataIsNoOp0,00

ResolverTest

Success testNullRegistration0,03
Success testRegistration0,00

BufferTest

Success testReleaseBufferWhenEmptyProducesNullCommand0,03
Success testReleaseBufferWithNullCommandsProducesNullCommand0,00
Success testReleaseBufferWithOneCommandForwardsIt0,00
Success testReleaseBufferWithSeveralCommandsForwardsThem0,00

FilterTest

Success testFilterNullCommandForwardsNull0,03

SubjectTest

Success testWithNoObserver0,03
Success testWithTwoObservers0,00

AsynchronousInputTest

Success testRead0,03

ChannelManagerTest

Success testRegisterInputOutputTriggersConnectionView0,03
Success testUnregisterRegisteredInputTriggersConnectionView0,00
Success testRegisterInputOutputAndClearManagerClosesBoth0,00
Success testRegisterInputOutputAndUnregisterInputClosesBoth0,00
Success testUnregisterNonRegisteredIsNoOp0,00

FileInputConnectorTest

Success testOpenFileFails0,03
Success testOpenSuccessfull0,00

FileOutputConnectorTest

Success testOpenSuccessfull0,03
Success testOpenDirectoryFails0,00

InputTest

Success testCloseClosesInputIfNotAlreadyClosed0,03
Success testCloseIsNoOpIfInputAlreadyClosed0,00
Success testReadIsNoOpWhenClosed0,00
Success testReadCommand0,00
Success testReadNullThrowsAnException0,00
Success testReadNullDetectsInputClosed0,00

ObjectInputTest

Success testCreateWithNullStreamThrowsAnException0,20
Success testCreateDoesNotReadAnythingFromTheStream0,00
Success testCloseForwardsToTheStream0,00
Success testReadThrowsExceptionWhenTheStreamDoes0,00
Success testReadEndOfFileClosesAndReturnsNull0,00
Success testCanReadDummyCommand0,02
Success testReadTrashThrowsAnException0,00

ObjectOutputTest

Success testCreateWithNullStreamThrowsAnException0,20
Success testCloseForwardsToTheStream0,00
Success testCreateDoesNotWriteAnythingToTheStream0,00
Success testWriteThrowsAnExceptionWhenTheStreamDoes0,00
Success testWriteNullCommandDoesNotWriteDataToTheStream0,00
Success testWriteAppendsDataToTheStream0,03

OutputTest

Success testCloseClosesOutputIfNotAlreadyClosed0,03
Success testCloseIsNoOpIfOutputAlreadyClosed0,00
Success testHandleCommandForwardsToWrite0,00

XStreamInputTest

Success testCreateWithNullStreamThrowsAnException0,53
Success testCreateDoesNotReadAnythingFromTheStream0,00
Success testCloseForwardsToTheStream0,02
Success testReadThrowsExceptionWhenTheStreamDoes0,02
Success testReadEndOfFileClosesAndReturnsNull0,00
Success testCanReadDummyCommand0,05
Success testReadTrashThrowsAnException0,00

XStreamOutputTest

Success testCreateWithNullStreamThrowsAnException0,31
Success testCloseForwardsToTheStream0,02
Success testCreateDoesNotWriteAnythingToTheStream0,00
Success testWriteThrowsAnExceptionWhenTheStreamDoes0,03
Success testWriteNullCommandDoesNotWriteDataToTheStream0,00
Success testWriteAppendsDataToTheStream0,00

NetworkAcceptorTest

Success testCreateWithInvalidPort0,06
Success testOpenPortAlreadyInUse0,03
Success testOpen0,05
Success testOpenAndCloseRightAway0,06
Success testClose0,06
Success testCloseWhileNotOpenIsNoOp0,03
Success testCloseTwiceWhileNotOpenIsNoOp0,03

NetworkConnectorTest

Success testOpenSuccessfull0,03
Success testCreateInvalidPort0,00
Success testOpenTimeouts1,08

LoginHandlerTest

Success testUserLogsInTriggersRegistration0,03
Success testMatchingCommandIsExecuted0,00
Success testNonMatchingCommandIsNotExecuted0,00
Success testNonMatchingCommandIsForwardedWhenUserHasLoggedIn0,00

UserManagerTest

Success testDisconnectNonRegisteredInputOutputIsNoOp0,03
Success testRegisterUserWithUnregisteredInputIsNoOp0,00
Success testRegisterUserTriggersLogin0,02
Success testDisconnectInputOutputTriggersLogout0,00

EasyMockTestCaseTest

Success testCreateMockFromInterfaceProvidesNonNullObject0,02
Success testCreateMockFromClassProvidesNonNullObject0,23
Success testControlObjectForCreatedMockIsNonNull0,00
Success testControlObjectForInvalidMockIsNull0,00
Success testCreateMockAndRunTestPasses0,00
Success testCreateMockWithExpectationAndRunTestFails0,00
Success testCreateMockWithExpectationAndRunTestPasses0,00

AdjacentTileIteratorTest

Success testEmptyGrid0,02
Success testPartialGrid0,00

CoordinateTest

Success testEqualsObject0,00
Success testClone0,00

GridUtilTest

Success testEven0,00
Success testOdd0,00

PeakHexagonBuilderTest

Success testOutOfBoundPicking0,03
Success testTopLeftHexagonPicking0,02

FlatHexagonDirectionGroupTest

Success testGetAdjacent0,02

FlatShiftedHexagonDirectionGroupTest

Success testGetAdjacent0,02

PeakHexagonDirectionGroupTest

Success testGetAdjacent0,02

PeakShiftedHexagonDirectionGroupTest

Success testGetAdjacent0,02

HexagonGridTest

Success testFlatGridLinearIterator0,02
Success testFlatGridAdjacentIterator0,00
Success testFlatShiftedGridAdjacentIterator0,00
Success testPeakGridAdjacentIterator0,00
Success testPeakShiftedGridAdjacentIterator0,00
Success testPeakShiftedGridAdjacentIteratorOutsideGrid0,00

LinearTileIteratorTest

Success testEmptyGrid0,02
Success testNormalGrid0,00

EightDirectionGroupTest

Success testGetAdjacent0,02

FourDirectionGroupTest

Success testGetAdjacent0,02

HorizontalTorusTest

Success testWithinRangeCoordinateTransformationIsInvariant0,00
Success testWithinEdgeCoordinatesTransformationIsInvariant0,00
Success testWithinNegativeCoordinateTransformationMovesItIntoRange0,00
Success testWithinOutOfBoundsCoordinateTransformationMovesItIntoRange0,00

VerticalTorusTest

Success testWithinRangeCoordinateTransformationIsInvariant0,00
Success testWithinEdgeCoordinatesTransformationIsInvariant0,00
Success testWithinNegativeCoordinateTransformationMovesItIntoRange0,00
Success testWithinOutOfBoundsCoordinateTransformationMovesItIntoRange0,00

RandomIteratorTest

Success testRandomizeNullIterator0,02
Success testRemoveThrowsUnsupportedOperationException0,00
Success testRandomizeEmptyList0,00
Success testRandomizeListWithOneElement0,02
Success testRandomizeListWithTwoElementsReversingThem0,00

RandomTest

Success testNextInt0,05
Success testNextFloatForZeroIsZero0,00
Success testNextFloatIsAFloat0,00
Success testSetSeedForReproductibility0,00
Success testGetSeed0,00