Summary

[ summary] [ package list] [ test cases]

Tests Errors Failures Success rate Time(s)
10 0 6 40,00% 1,25

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

Package List

[ summary] [ package list] [ test cases]

Package Tests Errors Failures Success Rate Time
pl.agh.iosr.ballamigos.server 7 0 3 57,14% 1,15
pl.agh.iosr.ballamigos.server.communication.rmi 3 0 3 0,00% 0,10

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

pl.agh.iosr.ballamigos.server

Class Tests Errors Failures Success Rate Time
Failure GameServerTest 5 0 3 40,00% 1,118
Success RoomTest 2 0 0 100,00% 0,031

pl.agh.iosr.ballamigos.server.communication.rmi

Class Tests Errors Failures Success Rate Time
Failure ServerImplTest 3 0 3 0,00% 0,102

Test Cases

[ summary] [ package list] [ test cases]

GameServerTest

Success testGetInstance 0,16
Failure testAddPlayer 0,11
can't add player with unique login
Failure testMovePlayer 0,01
Can't add player
Failure testMoveUnloggedPlayer 0,01
Unlogged user added to room
Success testCreateRoom 0,00

RoomTest

Success testAddPlayer 0,00
Success testRemovePlayer 0,00

ServerImplTest

Failure testLogin 0,05
can't create server object Port already in use: 1988; nested exception is: java.net.BindException: Address already in use
Failure testLogout 0,02
can't create server object Port already in use: 1988; nested exception is: java.net.BindException: Address already in use
Failure testSendMessage 0,01
can't create server object Port already in use: 1988; nested exception is: java.net.BindException: Address already in use

Failure details

Failure testAddPlayer
can't add player with unique login
junit.framework.AssertionFailedError: can't add player with unique login at pl.agh.iosr.ballamigos.server.GameServerTest.testAddPlayer(GameServerTest.java:80)
Failure testMovePlayer
Can't add player
junit.framework.AssertionFailedError: Can't add player at pl.agh.iosr.ballamigos.server.GameServerTest.testMovePlayer(GameServerTest.java:111)
Failure testMoveUnloggedPlayer
Unlogged user added to room
junit.framework.AssertionFailedError: Unlogged user added to room at pl.agh.iosr.ballamigos.server.GameServerTest.testMoveUnloggedPlayer(GameServerTest.java:146)
Failure testLogin
can't create server object Port already in use: 1988; nested exception is: java.net.BindException: Address already in use
junit.framework.AssertionFailedError: can't create server object Port already in use: 1988; nested exception is: java.net.BindException: Address already in use at pl.agh.iosr.ballamigos.server.communication.rmi.ServerImplTest.setUp(ServerImplTest.java:46)
Failure testLogout
can't create server object Port already in use: 1988; nested exception is: java.net.BindException: Address already in use
junit.framework.AssertionFailedError: can't create server object Port already in use: 1988; nested exception is: java.net.BindException: Address already in use at pl.agh.iosr.ballamigos.server.communication.rmi.ServerImplTest.setUp(ServerImplTest.java:46)
Failure testSendMessage
can't create server object Port already in use: 1988; nested exception is: java.net.BindException: Address already in use
junit.framework.AssertionFailedError: can't create server object Port already in use: 1988; nested exception is: java.net.BindException: Address already in use at pl.agh.iosr.ballamigos.server.communication.rmi.ServerImplTest.setUp(ServerImplTest.java:46)