// Path: ristretto/src/main/java/com/appsingularity/ristretto/Ristretto.java
// public static ViewInteraction withDisplayedView(final int resourceId) {
//     // This is a placeholder to resolve the resourceId into a type.
//     return withDisplayedView(with(resourceId));
// }
// 
// Path: ristretto/src/main/java/com/appsingularity/ristretto/Ristretto.java
// public static ViewInteraction withView(final int resourceId) {
//     // This is a placeholder to resolve the resourceId into a type.
//     return onView(with(resourceId));
// }
// 
// Path: ristretto/src/main/java/com/appsingularity/ristretto/RistrettoViewMatchers.java
// @SuppressWarnings("UnusedDeclaration")
// public static Matcher<View> with(String text) {
//     return with(is(text));
// }


import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
import static android.support.test.espresso.matcher.ViewMatchers.withId;
import static android.support.test.espresso.matcher.ViewMatchers.withText;
import static com.appsingularity.ristretto.Ristretto.withDisplayedView;
import static com.appsingularity.ristretto.Ristretto.withView;
import static com.appsingularity.ristretto.RistrettoViewMatchers.with;
import static org.hamcrest.core.Is.is;
        withView(R.id.label).check(matches(isDisplayed()));
    }

    @Test
    public void withView_textId() {
        withView(R.string.label).check(matches(isDisplayed()));
    }

    @Test
    public void withView_text() {
        withView(activityRule.getActivity().getString(R.string.label)).check(matches(isDisplayed()));
    }

    @Test
    public void withDisplayedView_viewId() {
        withDisplayedView(R.id.label).check(matches(isDisplayed()));
    }

    @Test
    public void withDisplayedView_textId() {
        withDisplayedView(R.string.label).check(matches(isDisplayed()));
    }

    @Test
    public void withDisplayedView_text() {
        withDisplayedView(activityRule.getActivity().getString(R.string.label)).check(matches(isDisplayed()));
    }

    @Test
    public void wWithDisplayedView_matcher() {
// Path: ristretto/src/main/java/com/appsingularity/ristretto/Ristretto.java
// public static ViewInteraction withDisplayedView(final int resourceId) {
//     // This is a placeholder to resolve the resourceId into a type.
//     return withDisplayedView(with(resourceId));
// }
// 
// Path: ristretto/src/main/java/com/appsingularity/ristretto/Ristretto.java
// public static ViewInteraction withView(final int resourceId) {
//     // This is a placeholder to resolve the resourceId into a type.
//     return onView(with(resourceId));
// }
// 
// Path: ristretto/src/main/java/com/appsingularity/ristretto/RistrettoViewMatchers.java
// @SuppressWarnings("UnusedDeclaration")
// public static Matcher<View> with(String text) {
//     return with(is(text));
// }


// Path: ristretto-sample/src/androidTest/java/com/appsingularity/ristrettosample/ExampleInstrumentedTest.java
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
import static android.support.test.espresso.matcher.ViewMatchers.withId;
import static android.support.test.espresso.matcher.ViewMatchers.withText;
import static com.appsingularity.ristretto.Ristretto.withDisplayedView;
import static com.appsingularity.ristretto.Ristretto.withView;
import static com.appsingularity.ristretto.RistrettoViewMatchers.with;
import static org.hamcrest.core.Is.is;

        withView(R.id.label).check(matches(isDisplayed()));
    }

    @Test
    public void withView_textId() {
        withView(R.string.label).check(matches(isDisplayed()));
    }

    @Test
    public void withView_text() {
        withView(activityRule.getActivity().getString(R.string.label)).check(matches(isDisplayed()));
    }

    @Test
    public void withDisplayedView_viewId() {
        withDisplayedView(R.id.label).check(matches(isDisplayed()));
    }

    @Test
    public void withDisplayedView_textId() {
        withDisplayedView(R.string.label).check(matches(isDisplayed()));
    }

    @Test
    public void withDisplayedView_text() {
        withDisplayedView(activityRule.getActivity().getString(R.string.label)).check(matches(isDisplayed()));
    }

    @Test
    public void wWithDisplayedView_matcher() {
        withDisplayedView(with(R.id.label)).check(matches(isDisplayed()));