All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.assertj.android.api.app.LocalActivityManagerAssert Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy