JUnit for Serial Port method testing

Skip to first unread message

Flavio Bertini

Aug 18, 2022, 5:54:26 AM8/18/22
to mockito
Hello Everyone,

I would like to test the method I have implemented for Serial Port communication.
Basically, I can get serial port communication working using jssc library but I can't test my write/read method unless I run my code on the real device at target runtime.à

Can Mockito help me to mock a serial port or does it support serial port unit testing in some way?

Of course, I've searched the main mockito website page and github but still not found the information I am looking for.

Thanks in advance,

Reply all
Reply to author
0 new messages