org.fest.assertions.api.android.animation.PropertyValuesHolderAssert 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.
// Copyright 2013 Square, Inc.
package org.fest.assertions.api.android.animation;
import android.animation.PropertyValuesHolder;
import org.fest.assertions.api.AbstractAssert;
import static org.fest.assertions.api.Assertions.assertThat;
/** Assertions for {@link PropertyValuesHolder} instances. */
public class PropertyValuesHolderAssert
extends AbstractAssert {
public PropertyValuesHolderAssert(PropertyValuesHolder actual) {
super(actual, PropertyValuesHolderAssert.class);
}
public PropertyValuesHolderAssert hasPropertyName(String name) {
isNotNull();
String actualName = actual.getPropertyName();
assertThat(actualName) //
.overridingErrorMessage("Expected property name <%s> but was <%s>.", name, actualName) //
.isEqualTo(name);
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy