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