Commit Graph

24 Commits

Author SHA1 Message Date
atomicint 1f539b16ab Remove duplicate GameObject rotated checks 2018-08-28 13:38:11 -04:00
Gary Tierney 51cfe1cd36 Add WalkingQueue tests 2018-08-22 22:00:39 +01:00
Gary Tierney 248a7d97d9 Update plugin test framework to junit5
Updates the testing infrastructure to use the latest relesae of junit and
leverages the new extension mechanism to create an easy to use testing
framework.  Also adds additional test coverage for several plugins.
2018-08-19 22:28:41 +01:00
Gary Tierney 76dd8ba192 Refactor asynchronous actions to avoid thread usage
Adds custom coroutines specifically for use within Actions.  This
implements all features of the previous system, however, does not rely
on a separate executor to wake up continuations.

Note: since Actions are still ran by an executor and a small chance of
overlap exists the ActionCoroutine implementation uses atomic counters
and references.
2017-09-19 01:52:10 +01:00
Gary Tierney 05e20d9d51 Reorganize project sources from src/main to src/main/java 2017-05-28 22:04:34 +01:00
Gary Tierney 916f6c547d Add tests around CollisionManager functionality
Adds tests for the CollisionManager which makes sure that collision
matrices are correctly built for the following object types:

* Interactables
* Walls
* Corners

Missing from these tests are tests for blocked / bridged tiles, and
large corner walls, which can be added later.  Additionally, the test
cases include ASCII illustrations of the collision grid and how it is
built / checked for a particular object or movement.
2016-12-31 05:19:49 +00:00
AymericDu a8cada6f9e Template method on ChatMessage 2016-03-19 15:37:28 +01:00
Jeremy MATHIAS ca82ad5e4e Add unit tests for SkillSet 2016-03-07 16:14:52 +01:00
Major b99b20fbb4 Merge pull request #171 from ryleykimmel/consistent-tests
Make test class and method names consistent
2016-02-09 16:10:43 +00:00
Major 3e08a62672 Merge pull request #167 from ryleykimmel/issue165
Fix String attribute encoding delimiter
2016-02-09 16:09:12 +00:00
atomicint 38486f9e3e Add unit test for Attribute#encode
Fix typo in Attribute unit test

Ensure test method names are consistent with others in Apollo

More clear tests
2016-02-09 11:06:21 -05:00
atomicint d2b54bde4d Made test class names consistent with other tests
Make test classes final

Ensure all test method names are consistent
2016-02-09 10:21:34 -05:00
atomicint 2e9a7ddaaf Fix issue #142
Add unit test for MobRepository#remove(null)

Add explicit null check

Remove empty line, change useless exception message
2016-02-05 12:23:13 -05:00
atomicint 5156e0bc19 Removed inline comments 2016-01-22 15:55:40 -05:00
atomicint 637a18d155 Fixes issue #98 (also adds unit test for MobRepository) 2016-01-22 01:11:03 -05:00
Gary Tierney 80be2691ca Remove ItemVerificationHandler test to account for #32 2015-09-13 16:06:20 +01:00
Gary Tierney c65d533288 Add tests around ItemOnObjectVerificationHandler
Add various tests around ItemOnObject messages to verify that a valid
object needs to be given as well as a valid item in order for the
message to be passed down the MessageHandlerChain.
2015-09-13 02:20:37 +01:00
Gary Tierney 15f5d4a36e Change @BeforeClass to @Before to prevent tests failing 2015-09-13 01:46:59 +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
atomicint 592b993d9b Fixes issue #70 2015-08-24 21:29:50 -04:00