Gary Tierney
15f5d4a36e
Change @BeforeClass to @Before to prevent tests failing
2015-09-13 01:46:59 +01:00
Gary Tierney
a21b6581d6
Move powermock to bottom of pom, change junit scope to test
2015-09-13 01:46:41 +01:00
Gary Tierney
0c074bd123
Add tests around ObjectActionVerificationHandler
...
Add a test which verifies an ObjectActionMessage is terminated if its
not within the specified distance of the player.
Additionally add a test which verifies that an ObjectActionMessage is
terminated if there is no object with the given id nearby.
2015-09-13 01:42:12 +01:00
Gary Tierney
ef398dc098
Add a test around ChatMessageHandler, update imports
...
Update the previous ItemOnItemVerificationHandler test to use static
imports of PowerMockito and Assert.
2015-09-13 01:25:00 +01:00
Gary Tierney
82801df436
Add a test around the target of ItemOnItemMessage
...
Check that the message is terminated() if an ItemOnItemMessage
is received with an invalid target item.
2015-09-13 01:17:41 +01:00
Gary Tierney
c9b702bcfb
Get ItemOnItemVerificationHandlerTest passing
2015-09-13 01:14:04 +01:00
Gary Tierney
a5f8b1f9fd
Test messages with an invalid source are terminated
2015-09-13 01:08:11 +01:00
Gary Tierney
7dc45c0281
Add PowerMock JUnit module and Mockito API to pom
2015-09-13 01:07:19 +01:00