Skip to content

Commit

Permalink
Various fixes in AbstractAnimationAssert
Browse files Browse the repository at this point in the history
- Correct a set of error messages for Animation#willChangeTransformationMatrix
- Compare against the expected value rather than the actual value for AbstractAnimationAssert#hasStartTime()
  • Loading branch information
MariusVolkhart committed Mar 31, 2016
1 parent dcbf476 commit 70f20bc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public S hasStartTime(long time) {
long actualTime = actual.getStartTime();
assertThat(actualTime) //
.overridingErrorMessage("Expected start time <%s> but was <%s>.", time, actualTime) //
.isEqualTo(actualTime);
.isEqualTo(time);
return myself;
}

Expand Down Expand Up @@ -213,15 +213,15 @@ public S isNotChangingBounds() {
public S isChangingTransformationMatrix() {
isNotNull();
assertThat(actual.willChangeTransformationMatrix()) //
.overridingErrorMessage("Expected to be changing bounds but was not.") //
.overridingErrorMessage("Expected to be changing transformation matrix but was not.") //
.isTrue();
return myself;
}

public S isNotChangingTransformationMatrix() {
isNotNull();
assertThat(actual.willChangeTransformationMatrix()) //
.overridingErrorMessage("Expected to not be changing bounds but was.") //
.overridingErrorMessage("Expected to not be changing transformation matrix but was.") //
.isFalse();
return myself;
}
Expand Down

0 comments on commit 70f20bc

Please sign in to comment.