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

org.fest.assertions.api.android.app.LocalActivityManagerAssert Maven / Gradle / Ivy

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