3

I am trying to match value that is inside a bundle of bundle (see image).

I need to verify that that uriString="file:///storage/emulated...." is set.

But so far with my code, I can verify upto value[1]="Benefits Card provied by" only.

intended(IntentMatchers.hasExtras(BundleMatchers.hasValue(hasExtras(BundleMatchers.hasValue("test - Prescription Card")))));
AccTest
  • 313
  • 3
  • 11

1 Answers1

0

Though this is old and has probably been resolved, I think it's worth noting to try and use hasExtras along with nested hasEntry.

For a nested bundle like -> extras: [Bundle[{key=Bundle[<more data>]}]] One can try -> hasExtras(hasEntry(<key>), hasEntry(<key>, <arg>))