org.assertj.android.api.app.LocalActivityManagerAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of assertj-android Show documentation
Show all versions of assertj-android Show documentation
A set of AssertJ assertion helpers geared toward testing Android.
package org.assertj.android.api.app;
import android.app.LocalActivityManager;
import org.assertj.core.api.AbstractAssert;
import static org.assertj.core.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;
}
}