org.fest.assertions.api.android.view.TextureViewAssert 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.
package org.fest.assertions.api.android.view;
import android.view.TextureView;
import static org.fest.assertions.api.Assertions.assertThat;
/** Assertions for {@link TextureView} instances. */
public class TextureViewAssert extends AbstractViewAssert {
public TextureViewAssert(TextureView actual) {
super(actual, TextureViewAssert.class);
}
public TextureViewAssert isAvailable() {
isNotNull();
assertThat(actual.isAvailable()) //
.overridingErrorMessage("Expected to be available but was not available.") //
.isTrue();
return this;
}
public TextureViewAssert isNotAvailable() {
isNotNull();
assertThat(actual.isAvailable()) //
.overridingErrorMessage("Expected to not be available but was available.") //
.isFalse();
return this;
}
}