// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/HintTextColorMatcher.java
// @CheckResult public static HintTextColorMatcher withHintTextColor(@ColorInt final int color) {
//   return new HintTextColorMatcher(ColorChecker.from(color));
// }
// 
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/HintTextColorMatcher.java
// @CheckResult public static HintTextColorMatcher withHintTextColorRes(@ColorRes final int colorRes) {
//   return new HintTextColorMatcher(ColorChecker.fromRes(colorRes));
// }
// 
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/HintTextColorMatcherActivity.java
// static final int VIEW_ID = 1234;


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.graphics.Color.GREEN;
import static android.graphics.Color.RED;
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.HintTextColorMatcher.withHintTextColor;
import static com.vanniktech.espresso.core.utils.HintTextColorMatcher.withHintTextColorRes;
import static com.vanniktech.espresso.core.utils.HintTextColorMatcherActivity.VIEW_ID;
package com.vanniktech.espresso.core.utils;



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

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

  @Test public void withHintTextColorResMatches() {
    onView(withId(VIEW_ID)).check(matches(withHintTextColorRes(R.color.red)));
  }

  @Test public void withHintTextColorMatches() {
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/HintTextColorMatcher.java
// @CheckResult public static HintTextColorMatcher withHintTextColor(@ColorInt final int color) {
//   return new HintTextColorMatcher(ColorChecker.from(color));
// }
// 
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/HintTextColorMatcher.java
// @CheckResult public static HintTextColorMatcher withHintTextColorRes(@ColorRes final int colorRes) {
//   return new HintTextColorMatcher(ColorChecker.fromRes(colorRes));
// }
// 
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/HintTextColorMatcherActivity.java
// static final int VIEW_ID = 1234;


// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/HintTextColorMatcherTest.java
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.graphics.Color.GREEN;
import static android.graphics.Color.RED;
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.HintTextColorMatcher.withHintTextColor;
import static com.vanniktech.espresso.core.utils.HintTextColorMatcher.withHintTextColorRes;
import static com.vanniktech.espresso.core.utils.HintTextColorMatcherActivity.VIEW_ID;

package com.vanniktech.espresso.core.utils;



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

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

  @Test public void withHintTextColorResMatches() {
    onView(withId(VIEW_ID)).check(matches(withHintTextColorRes(R.color.red)));
  }

  @Test public void withHintTextColorMatches() {
    onView(withId(VIEW_ID)).check(matches(withHintTextColor(RED)));