org.fest.assertions.api.android.inputmethodservice.ExtractEditTextAssert 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.
// Copyright 2013 Square, Inc.
package org.fest.assertions.api.android.inputmethodservice;
import android.inputmethodservice.ExtractEditText;
import org.fest.assertions.api.android.widget.AbstractTextViewAssert;
import static org.fest.assertions.api.Assertions.assertThat;
public class ExtractEditTextAssert extends AbstractTextViewAssert {
public ExtractEditTextAssert(ExtractEditText actual) {
super(actual, ExtractEditTextAssert.class);
}
public ExtractEditTextAssert isInputMethodTarget() {
isNotNull();
assertThat(actual.isInputMethodTarget()) //
.overridingErrorMessage("Expected to be input method target but was not.") //
.isTrue();
return this;
}
public ExtractEditTextAssert isNotInputMethodTarget() {
isNotNull();
assertThat(actual.isInputMethodTarget()) //
.overridingErrorMessage("Expected to not be input method target but was.") //
.isFalse();
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy