org.assertj.android.api.inputmethodservice.ExtractEditTextAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of assertj-android Show documentation
Show all versions of assertj-android Show documentation
A set of AssertJ assertion helpers geared toward testing Android.
// Copyright 2013 Square, Inc.
package org.assertj.android.api.inputmethodservice;
import android.inputmethodservice.ExtractEditText;
import org.assertj.android.api.widget.AbstractTextViewAssert;
import static org.assertj.core.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;
}
}