// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/DrawableMatcher.java
// @CheckResult public static DrawableMatcher withDrawable(@DrawableRes final int resourceId) {
//   return new DrawableMatcher(resourceId);
// }
// 
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/DrawableMatcher.java
// @CheckResult public static DrawableMatcher withNoDrawable() {
//   return new DrawableMatcher(NO_DRAWABLE);
// }
// 
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/DrawableMatcherActivity.java
// static final int VIEW_ID = 1234;


import androidx.annotation.DrawableRes;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import static android.view.View.GONE;
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.DrawableMatcher.withDrawable;
import static com.vanniktech.espresso.core.utils.DrawableMatcher.withNoDrawable;
import static com.vanniktech.espresso.core.utils.DrawableMatcherActivity.VIEW_ID;
package com.vanniktech.espresso.core.utils;



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

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

  @Test public void withNoDrawableMatches() {
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/DrawableMatcher.java
// @CheckResult public static DrawableMatcher withDrawable(@DrawableRes final int resourceId) {
//   return new DrawableMatcher(resourceId);
// }
// 
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/DrawableMatcher.java
// @CheckResult public static DrawableMatcher withNoDrawable() {
//   return new DrawableMatcher(NO_DRAWABLE);
// }
// 
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/DrawableMatcherActivity.java
// static final int VIEW_ID = 1234;


// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/DrawableMatcherTest.java
import androidx.annotation.DrawableRes;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import static android.view.View.GONE;
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.DrawableMatcher.withDrawable;
import static com.vanniktech.espresso.core.utils.DrawableMatcher.withNoDrawable;
import static com.vanniktech.espresso.core.utils.DrawableMatcherActivity.VIEW_ID;

package com.vanniktech.espresso.core.utils;



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

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

  @Test public void withNoDrawableMatches() {
    onView(withId(VIEW_ID)).check(matches(withNoDrawable()));