org.fest.assertions.api.android.widget.AbstractAbsSpinnerAssert 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.widget;
import android.widget.AbsSpinner;
import android.widget.SpinnerAdapter;
import org.fest.assertions.api.Assertions;
public abstract class AbstractAbsSpinnerAssert, A extends AbsSpinner>
extends AbstractAdapterViewAssert {
protected AbstractAbsSpinnerAssert(A actual, Class selfType) {
super(actual, selfType);
}
public S hasAdapter(SpinnerAdapter adapter) {
isNotNull();
SpinnerAdapter actualAdapter = actual.getAdapter();
Assertions.assertThat(actualAdapter) //
.overridingErrorMessage("Expected adapter <%s> but was <%s>.", adapter, actualAdapter) //
.isSameAs(adapter);
return myself;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy