All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fest.assertions.api.android.inputmethodservice.ExtractEditTextAssert Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
// 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