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

org.fest.assertions.api.android.view.TextureViewAssert Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy