Skip to content

Commit

Permalink
Fix for NumberPicker.getValue wrong assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugen Martynov authored and JakeWharton committed Nov 23, 2014
1 parent 4b78c66 commit 74837c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public NumberPickerAssert hasMinValue(int value) {

public NumberPickerAssert hasValue(int value) {
isNotNull();
int actualValue = actual.getMaxValue();
int actualValue = actual.getValue();
assertThat(actualValue) //
.overridingErrorMessage("Expected value <%s> but was <%s>.", value, actualValue) //
.isEqualTo(value);
Expand Down

0 comments on commit 74837c2

Please sign in to comment.