Commit Graph
6 Commits
Author SHA1 Message Date
rac..om 9b8060bac2 first set of tests for the Geometry. There's 18 tests in total, covering roughly 40% of the total number of methods in the geometry class.
To get all the tests to run, I needed to add EasyMock and some related jar files. This enables me to mock classes other the the one actually being tested to get a better test isolation.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10646 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-06-08 21:47:25 +00:00
rac..om 96006f1383 Fixed the build path for the unit tests. Yesterday, I created a problem there. Which should be fixed now.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10645 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-06-08 19:23:47 +00:00
rac..om 1f111c11ce Fixed the junit tests. They now work through the ant script as well as when run directly.
The fix required adding all the build/* folders to the "compile tests" libraries listing as well as moving the junit.jar in that listing to the top of the list.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10644 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-06-06 20:44:30 +00:00
rac..om 5ae44319ea Turns out I did things a bit wrong with respect to the new nifty mouse even queue....
I called stuff that was meant to be internal to nifty. That's fixed now. Also had to replace the nifty examples jar with a new version. This version os BIG (15Mb). Void is working on a smaller one, but at least with this big one, things work as expected.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7117 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-25 23:56:43 +00:00
rac..om 76ff6bb99f Mouse wheel and the other two mouse buttons should now also be fixed. Since this is not tested in the NiftyGUI test there's no real of know till a test has been created though. To fix it I just tweaked the appropriate if statements a bit.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7115 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-25 22:56:51 +00:00
rac..om 8cdef21af6 upgraded nifty and nifty-default-controls to nightly build of 2011-03-24. Also fixed the AwtMouseInput and removed some ununsed imports. The com.jme3.niftygui.InputSystem has been changed as well to correspond with the new Nifty way of working with mouse events. It now uses the new MouseInputEventQueue and the new NiftyMouseInputEvent.
There is still an issue with the mouse buttons besides the first mouse button. These should be picked up by nifty, but for some reason are not triggering a MouseButtonEvent. This is something Kirril will need to take a look at.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7114 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-25 21:59:52 +00:00