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

org.fest.assertions.api.android.widget.AbstractAbsoluteLayoutAssert Maven / Gradle / Ivy

The newest version!
package org.fest.assertions.api.android.widget;

import android.widget.AbsoluteLayout;
import org.fest.assertions.api.android.view.AbstractViewGroupAssert;

import static org.fest.assertions.api.Assertions.assertThat;

public abstract class AbstractAbsoluteLayoutAssert, A extends AbsoluteLayout>
    extends AbstractViewGroupAssert {
  protected AbstractAbsoluteLayoutAssert(A actual, Class selfType) {
    super(actual, selfType);
  }

  public S isDelayingChildPressedState() {
    isNotNull();
    assertThat(actual.shouldDelayChildPressedState()) //
        .overridingErrorMessage("Epxected to be delaying child pressed state but was not.") //
        .isTrue();
    return myself;
  }

  public S isNotDelayingChildPressedState() {
    isNotNull();
    assertThat(actual.shouldDelayChildPressedState()) //
        .overridingErrorMessage("Expected to not be delaying child pressed state but was.") //
        .isFalse();
    return myself;
  }
}