org.fest.assertions.api.android.app.LoaderManagerAssert 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.app;
import android.app.LoaderManager;
import org.fest.assertions.api.AbstractAssert;
import static org.fest.assertions.api.Assertions.assertThat;
/** Assertions for {@link LoaderManager} instances. */
public class LoaderManagerAssert extends AbstractAssert {
public LoaderManagerAssert(LoaderManager actual) {
super(actual, LoaderManagerAssert.class);
}
public LoaderManagerAssert hasLoader(int id) {
isNotNull();
assertThat(actual.getLoader(id))
.overridingErrorMessage("Expected loader with ID <%s> but was not present.", id)
.isNotNull();
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy