Ahh that sounds better! I'll work on that tonight.
On Apr 3, 2013 1:07 PM, "edenman" <notifications@github.com> wrote:

> In src/main/java/org/fest/assertions/api/android/content/IntentAssert.java:
>
> > @@ -36,4 +36,64 @@ public IntentAssert hasExtra(String name) {
> >          .isTrue();
> >      return this;
> >    }
> > +
> > +  public IntentAssert hasFlags(int flags) {
> > +    int expected = actual.getFlags();
> > +    assertThat(expected)
> > +      .overridingErrorMessage("Expected <%s> but was <%s>.", flagToString(expected), flagToString(flags))
> > +      .isEqualTo(flags);
> > +    return this;
> > +  }
> > +
> > +  public static String flagToString(int flag) {
> > +    switch(flag) {
>
> Instead of a switch statement here I think you need to loop over all of
> the flag values and check if (flag &
> Intent.FLAG_GRANT_READ_URI_PERMISSION)
> stringBuilder.append("grand_read_uri_permission")
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/square/fest-android/pull/52/files#r3643158>
> .
>