org.fest.assertions.api.android.graphics.drawable.TransitionDrawableAssert 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.graphics.drawable;
import android.graphics.drawable.TransitionDrawable;
import static org.fest.assertions.api.Assertions.assertThat;
/** Assertions for {@link TransitionDrawable} instances. */
public class TransitionDrawableAssert
extends AbstractDrawableAssert {
public TransitionDrawableAssert(TransitionDrawable actual) {
super(actual, TransitionDrawableAssert.class);
}
public TransitionDrawableAssert isCrossFadeEnabled() {
isNotNull();
assertThat(actual.isCrossFadeEnabled()) //
.overridingErrorMessage("Expected cross-fade to be enabled but was disabled.") //
.isTrue();
return this;
}
public TransitionDrawableAssert isCrossFadeDisabled() {
isNotNull();
assertThat(actual.isCrossFadeEnabled()) //
.overridingErrorMessage("Expected cross-fade to be disabled but was enabled.") //
.isFalse();
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy