org.fest.assertions.api.android.widget.AbstractRelativeLayoutAssert 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.widget;
import android.widget.RelativeLayout;
import org.fest.assertions.api.android.view.AbstractViewGroupAssert;
import static org.fest.assertions.api.Assertions.assertThat;
public abstract class AbstractRelativeLayoutAssert, A extends RelativeLayout>
extends AbstractViewGroupAssert {
protected AbstractRelativeLayoutAssert(A actual, Class selfType) {
super(actual, selfType);
}
public S hasGravity(int gravity) {
isNotNull();
int actualGravity = actual.getGravity();
assertThat(actualGravity) //
.overridingErrorMessage("Expected gravity <%s> but was <%s>.", gravity, actualGravity) //
.isEqualTo(gravity);
return myself;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy