org.fest.assertions.api.android.app.AbstractDialogAssert 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.app;
import android.app.Dialog;
import org.fest.assertions.api.AbstractAssert;
import static org.fest.assertions.api.Assertions.assertThat;
public abstract class AbstractDialogAssert, A extends Dialog>
extends AbstractAssert {
public AbstractDialogAssert(A actual, Class selfType) {
super(actual, selfType);
}
public S isShowing() {
isNotNull();
assertThat(actual.isShowing()) //
.overridingErrorMessage("Expected showing but was not showing") //
.isTrue();
return myself;
}
public S isNotShowing() {
isNotNull();
assertThat(actual.isShowing()) //
.overridingErrorMessage("Expected not showing but was showing") //
.isFalse();
return myself;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy