org.fest.assertions.api.android.app.DialogFragmentAssert 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.DialogFragment;
import static org.fest.assertions.api.Assertions.assertThat;
/** Assertions for {@link DialogFragment} instances. */
public class DialogFragmentAssert
extends AbstractFragmentAssert {
public DialogFragmentAssert(DialogFragment actual) {
super(actual, DialogFragmentAssert.class);
}
public DialogFragmentAssert isCancelable() {
isNotNull();
assertThat(actual.isCancelable()) //
.overridingErrorMessage("Expected to be cancelable but was not cancelable.") //
.isTrue();
return this;
}
public DialogFragmentAssert isNotCancelable() {
isNotNull();
assertThat(actual.isCancelable()) //
.overridingErrorMessage("Expected to be not cancelable but was cancelable.") //
.isFalse();
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy