// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/CurrentItemMatcher.java
// @CheckResult public static CurrentItemMatcher withCurrentItem(final int currentItem) {
//   return new CurrentItemMatcher(currentItem);
// }
// 
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/TextColorMatcherActivity.java
// static final int VIEW_ID = 1234;


import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.assertion.ViewAssertions.matches;
import static androidx.test.espresso.matcher.ViewMatchers.withId;
import static com.vanniktech.espresso.core.utils.CurrentItemMatcher.withCurrentItem;
import static com.vanniktech.espresso.core.utils.TextColorMatcherActivity.VIEW_ID;
package com.vanniktech.espresso.core.utils;



@RunWith(AndroidJUnit4.class) public final class CurrentItemMatcherTest {
  @Rule public final ExpectedException expectedException = ExpectedException.none();

  @Rule public final ActivityTestRule<CurrentItemMatcherActivity> activityTestRule = new ActivityTestRule<>(CurrentItemMatcherActivity.class);

  @Test public void withCurrentItemMatches() {
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/CurrentItemMatcher.java
// @CheckResult public static CurrentItemMatcher withCurrentItem(final int currentItem) {
//   return new CurrentItemMatcher(currentItem);
// }
// 
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/TextColorMatcherActivity.java
// static final int VIEW_ID = 1234;


// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/CurrentItemMatcherTest.java
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.assertion.ViewAssertions.matches;
import static androidx.test.espresso.matcher.ViewMatchers.withId;
import static com.vanniktech.espresso.core.utils.CurrentItemMatcher.withCurrentItem;
import static com.vanniktech.espresso.core.utils.TextColorMatcherActivity.VIEW_ID;

package com.vanniktech.espresso.core.utils;



@RunWith(AndroidJUnit4.class) public final class CurrentItemMatcherTest {
  @Rule public final ExpectedException expectedException = ExpectedException.none();

  @Rule public final ActivityTestRule<CurrentItemMatcherActivity> activityTestRule = new ActivityTestRule<>(CurrentItemMatcherActivity.class);

  @Test public void withCurrentItemMatches() {
    onView(withId(VIEW_ID)).check(matches(withCurrentItem(0)));