package com.nextzy.mrsmile.mvp_example.calculator;

import android.support.test.espresso.matcher.ViewMatchers;
import android.support.test.rule.ActivityTestRule;

import com.nextzy.mrsmile.mvp_example.R;

import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;

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;

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

    @Rule
    ActivityTestRule<CalculatorActivity> activityTestRule;

    @Before
    public void setUp() {
        activityTestRule = new ActivityTestRule<>(CalculatorActivity.class);
    }

    @Test
    public void isVisibleButtonZero() {
        onView(withId(R.id.btn_zero)).check(matches(isDisplayed()));
    }

    @Test
    public void isVisibleButtonOne() {
        onView(withId(R.id.btn_one)).check(matches(isDisplayed()));
    }

    @Test
    public void isVisibleButtonTwo() {
        onView(withId(R.id.btn_two)).check(matches(isDisplayed()));
    }

    @Test
    public void isVisibleButtonThere() {
        onView(withId(R.id.btn_there)).check(matches(isDisplayed()));
    }

    @Test
    public void isVisibleButtonFour() {
        onView(withId(R.id.btn_four)).check(matches(isDisplayed()));
    }

    @Test
    public void isVisibleButtonFive() {
        onView(withId(R.id.btn_five)).check(matches(isDisplayed()));
    }

    @Test
    public void isVisibleButtonSix() {
        onView(withId(R.id.btn_six)).check(matches(isDisplayed()));
    }

    @Test
    public void isVisibleButtonSeven() {
        onView(withId(R.id.btn_seven)).check(matches(isDisplayed()));
    }

    @Test
    public void isVisibleButtonEight() {
        onView(withId(R.id.btn_eight)).check(matches(isDisplayed()));
    }

    @Test
    public void isVisibleButtonNine() {
        onView(withId(R.id.btn_nine)).check(matches(isDisplayed()));
    }

    @Test
    public void isVisibleButtonClear() {
        onView(withId(R.id.btn_clear)).check(matches(isDisplayed()));
    }

    @Test
    public void isVisibleButtonDot() {
        onView(withId(R.id.btn_dot)).check(matches(isDisplayed()));
    }

}
@@ -77,37 +77,29 @@
 est.
-espresso.matcher.ViewMatchers
+rule.ActivityTestRule
 ;%0Aim
@@ -126,35 +126,89 @@
 .test.ru
-le.ActivityTestRule
+nner.AndroidJUnit4;%0Aimport android.test.suitebuilder.annotation.LargeTest
 ;%0A%0Aimpor
@@ -288,24 +288,24 @@
 junit.Rule;%0A
-
 import org.j
@@ -310,24 +310,57 @@
 .junit.Test;
+%0Aimport org.junit.runner.RunWith;
 %0A%0Aimport sta
@@ -685,16 +685,57 @@
 AD.%0A */%0A
+@RunWith(AndroidJUnit4.class)%0A@LargeTest%0A
 public c

update CalculatorActivity add @RunWith