OneBusAway / onebusaway-alexa

An Java-based app to communicate with Amazon Alexa for devices such as the Amazon Echo
Other
52 stars 18 forks source link

Write unit tests for speechlets #18

Closed philipmw closed 8 years ago

philipmw commented 8 years ago

I have not been able to write effective unit tests with Mockito, because OneBusAway classes are final. Mockito is unable to mock final classes. Instead, I propose switching to JMockit.

barbeau commented 8 years ago

:+1:

philipmw commented 8 years ago

I am gonna close this issue because I think the referenced PR addresses it for the most part. We have basic tests. A potential future issue would be to increase code coverage.