Yes and no. ScreenBundleHelper is more or less del...
# android
a
Yes and no. ScreenBundleHelper is more or less delegating to / from a bundle. so what you’re doing is verifying that when I call
setNoteId(bundle, noteId)
, I then call
bundle.putExtra(NOTE_ID, noteId)
, and that
getNoteId(bundle)
calls
bundle.getNoteId(NOTE_ID, null)
or whatever. You don’t necessarily need an instance of a bundle to do that, a mock would work perfectly fine. It depends I guess what rules you apply to what is acceptable to mock and what isn’t.