lundi 11 juillet 2016

how to mock the Bluetooth adapter using any mocking Api for junit

I am trying to write junit test cases for my Bluetooth Code testing in android . My public method tries to call the buletooth adapter but its giving error like java.lang.RuntimeException: Method getDefaultAdapter in android.bluetooth.BluetoothAdapter not mocked.

any help would be highly appreciable.

Aucun commentaire:

Enregistrer un commentaire