org.fest.assertions.api.android.view.SurfaceAssert 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.Surface;
import org.fest.assertions.api.AbstractAssert;
import static org.fest.assertions.api.Assertions.assertThat;
public class SurfaceAssert extends AbstractAssert {
public SurfaceAssert(Surface actual) {
super(actual, SurfaceAssert.class);
}
public SurfaceAssert isValid() {
isNotNull();
assertThat(actual.isValid()) //
.overridingErrorMessage("Expected to be valid but was not valid.") //
.isTrue();
return this;
}
public SurfaceAssert isNotValid() {
isNotNull();
assertThat(actual.isValid()) //
.overridingErrorMessage("Expected to not be valid but was valid.") //
.isFalse();
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy