All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fest.assertions.api.android.animation.AnimatorSetAssert Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show 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 - 2024 Weber Informatics LLC | Privacy Policy