package com.nextzy.mrsmile.mvp_example.calculator;

import android.support.test.rule.ActivityTestRule;

import org.junit.Rule;

/**
 * Created by nextzy on 8/6/2016 AD.
 */
public class CalculatorActivityTest {

    @Rule
    ActivityTestRule<CalculatorActivity> activityTestRule;
}
@@ -77,206 +77,2029 @@
 est.
-rule.ActivityTestRule;%0A%0Aimport org.junit.Rule;%0A%0A/**%0A * Created by nextzy on 8/6/2016 AD.%0A */%0Apublic class CalculatorActivityTest %7B%0A%0A    @Rule%0A    ActivityTestRule%3CCalculatorActivity%3E activityTestRule;
+espresso.matcher.ViewMatchers;%0Aimport android.support.test.rule.ActivityTestRule;%0A%0Aimport com.nextzy.mrsmile.mvp_example.R;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0A%0Aimport static android.support.test.espresso.Espresso.onView;%0Aimport static android.support.test.espresso.assertion.ViewAssertions.matches;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withId;%0A%0A/**%0A * Created by nextzy on 8/6/2016 AD.%0A */%0Apublic class CalculatorActivityTest %7B%0A%0A    @Rule%0A    ActivityTestRule%3CCalculatorActivity%3E activityTestRule;%0A%0A    @Before%0A    public void setUp() %7B%0A        activityTestRule = new ActivityTestRule%3C%3E(CalculatorActivity.class);%0A    %7D%0A%0A    @Test%0A    public void isVisibleButtonZero() %7B%0A        onView(withId(R.id.btn_zero)).check(matches(isDisplayed()));%0A    %7D%0A%0A    @Test%0A    public void isVisibleButtonOne() %7B%0A        onView(withId(R.id.btn_one)).check(matches(isDisplayed()));%0A    %7D%0A%0A    @Test%0A    public void isVisibleButtonTwo() %7B%0A        onView(withId(R.id.btn_two)).check(matches(isDisplayed()));%0A    %7D%0A%0A    @Test%0A    public void isVisibleButtonThere() %7B%0A        onView(withId(R.id.btn_there)).check(matches(isDisplayed()));%0A    %7D%0A%0A    @Test%0A    public void isVisibleButtonFour() %7B%0A        onView(withId(R.id.btn_four)).check(matches(isDisplayed()));%0A    %7D%0A%0A    @Test%0A    public void isVisibleButtonFive() %7B%0A        onView(withId(R.id.btn_five)).check(matches(isDisplayed()));%0A    %7D%0A%0A    @Test%0A    public void isVisibleButtonSix() %7B%0A        onView(withId(R.id.btn_six)).check(matches(isDisplayed()));%0A    %7D%0A%0A    @Test%0A    public void isVisibleButtonSeven() %7B%0A        onView(withId(R.id.btn_seven)).check(matches(isDisplayed()));%0A    %7D%0A%0A    @Test%0A    public void isVisibleButtonEight() %7B%0A        onView(withId(R.id.btn_eight)).check(matches(isDisplayed()));%0A    %7D%0A%0A    @Test%0A    public void isVisibleButtonNine() %7B%0A        onView(withId(R.id.btn_nine)).check(matches(isDisplayed()));%0A    %7D%0A
 %0A%7D

update CalculatorActivityTest check isDisplay Button Zero to Nine