While writing some tests for a new feature in AndroidAnnotatinos i found an issue with robolectirc when firing broadcasts with a data uril and having BroadcastReceiver whose IntentFilter have an addDataScheme set.
i have build a small sample project that you can test on device and with robolectric.
https://github.com/dodgex/ReceiverDataSchemeBug
in this project i have 3 receiver. one for http dataScheme one for ftp and one for both. each updates a TextView on receive. then i fire first an ftp and then an http intent (on button click). on the device it works as intended but when running with robolectric the http-only receiver also gets my ftp intents
While writing some tests for a new feature in AndroidAnnotatinos i found an issue with robolectirc when firing broadcasts with a data uril and having
BroadcastReceiverwhoseIntentFilterhave anaddDataSchemeset.i have build a small sample project that you can test on device and with robolectric.
https://github.com/dodgex/ReceiverDataSchemeBug
in this project i have 3 receiver. one for
httpdataScheme one forftpand one for both. each updates a TextView on receive. then i fire first anftpand then anhttpintent (on button click). on the device it works as intended but when running with robolectric thehttp-only receiver also gets myftpintents