Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests for UI controllers #43

Open
peteral opened this issue Aug 9, 2015 · 6 comments
Open

Unit tests for UI controllers #43

peteral opened this issue Aug 9, 2015 · 6 comments

Comments

@peteral
Copy link
Owner

peteral commented Aug 9, 2015

Problem - Java FX uses final classes. Cannot mock them with mockito. Need to migrate to power mock.

@peteral
Copy link
Owner Author

peteral commented Aug 9, 2015

Power Mock and Java FX don't work together. JavaFXThreading Rule cannot be activated for more than 1 test class because power mock manipulates class loading.

Fuk dis sheet!!!!

@peteral peteral added the wontfix label Aug 9, 2015
@peteral
Copy link
Owner Author

peteral commented Aug 9, 2015

Look for another solution

@peteral peteral removed the wontfix label Aug 9, 2015
@peteral
Copy link
Owner Author

peteral commented Aug 10, 2015

look at https://github.com/TestFX/TestFX

@peteral
Copy link
Owner Author

peteral commented Aug 10, 2015

might be a way however only works clean when using one test method in a test class

@peteral
Copy link
Owner Author

peteral commented Aug 10, 2015

TestFX imho not yet ready for production use... 0 documentation and many things not working yet

@peteral
Copy link
Owner Author

peteral commented Aug 11, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant