Skip to content

Commit 20fcf92

Browse files
committed
Merge pull request square#131 from tomMobileDev123/master
Switch incorrect expected and actual values for IntentFlags assertion
2 parents f380228 + d65ca20 commit 20fcf92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assertj-android/src/main/java/org/assertj/android/api/content/IntentAssert.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ public IntentAssert hasExtra(String name) {
6767

6868
public IntentAssert hasFlags(@IntentFlags int flags) {
6969
isNotNull();
70-
int expected = actual.getFlags();
70+
int actualFlags = actual.getFlags();
7171
//noinspection ResourceType
72-
assertThat(expected).overridingErrorMessage("Expected <%s> but was <%s>.",
73-
flagsToString(expected), flagsToString(flags)).isEqualTo(flags);
72+
assertThat(actualFlags).overridingErrorMessage("Expected <%s> but was <%s>.",
73+
flagsToString(flags), flagsToString(actualFlags)).isEqualTo(flags);
7474
return this;
7575
}
7676

0 commit comments

Comments
 (0)