
org.fest.assertions.api.android.animation.AnimatorSetAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fest-android Show documentation
Show all versions of fest-android Show documentation
A set of FEST assertion helpers geared toward testing Android.
The newest version!
// Copyright 2013 Square, Inc.
package org.fest.assertions.api.android.animation;
import android.animation.AnimatorSet;
import static org.fest.assertions.api.Assertions.assertThat;
public class AnimatorSetAssert extends AbstractAnimatorAssert {
public AnimatorSetAssert(AnimatorSet actual) {
super(actual, AnimatorSetAssert.class);
}
public AnimatorSetAssert hasAnimatorCount(int count) {
isNotNull();
int actualCount = actual.getChildAnimations().size();
assertThat(actualCount) //
.overridingErrorMessage("Expected animator count <%s> but was <%s>.", count, actualCount) //
.isEqualTo(count);
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy