peteral / softplc

PLC simulation for load / stress testing of SCADA / MES systems
20 stars 7 forks source link

Unit tests for UI controllers #43

Open peteral opened 8 years ago

peteral commented 8 years ago

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

peteral commented 8 years ago

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 commented 8 years ago

Look for another solution

peteral commented 8 years ago

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

peteral commented 8 years ago

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

peteral commented 8 years ago

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

peteral commented 8 years ago

check https://jemmy.java.net/JemmyFXGuide/jemmy-guide.html