ericcornelissen / NervousFish

An app for your :iphone: to exchange public-keys in a secure manner.
GNU Lesser General Public License v3.0
2 stars 4 forks source link

Add mockito support #34

Closed jverbraeken closed 7 years ago

jverbraeken commented 7 years ago

This PR implements Mockito (and updates Cucumber to the newest version)

Why? Mockito makes it easier to test classes without having to rely on the implementation of other classes. Powermock is not recommended for Android development, because Powermock modifies the Android byte-code, but that doesn't work because of the Java Virtual Machine (Dalvik).

How? Mockito tests run exactly the same as plain Java tests. Note that tests that require an Android device are in the folder "androidTest" while plain Java tests are in the folder "test".

Feedback? Probably not needed ;-)

clenrock commented 7 years ago

I agree with Eric, but if you are sure it works it's ok!

jverbraeken commented 7 years ago

@ericcornelissen @clenrock Sample test added!