package es.craftsmanship.toledo.katangapp;

import android.support.test.rule.ActivityTestRule;

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

import es.craftsmanship.toledo.katangapp.activities.MainActivity;

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.withText;

/**
 * @author Cristóbal Hermida
 */
public class ApplicationTest {

    @Rule
    public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule(MainActivity.class);

    public ApplicationTest() {
        super();
    }

    @Test
    public void titleIsDisplayed() {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        onView(withText("katanga")).check(matches(isDisplayed()));
    }

}
@@ -41,174 +41,8 @@
 p;%0A%0A
-import android.support.test.rule.ActivityTestRule;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0A%0Aimport es.craftsmanship.toledo.katangapp.activities.MainActivity;%0A%0A
 impo
@@ -98,16 +98,16 @@
 onView;%0A
+
 import s
@@ -330,16 +330,182 @@
 hText;%0A%0A
+import es.craftsmanship.toledo.katangapp.activities.MainActivity;%0A%0Aimport android.support.test.rule.ActivityTestRule;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0A%0A
 /**%0A * @
@@ -896,24 +896,24 @@
 ackTrace();%0A
-
         %7D%0A  
@@ -910,16 +910,17 @@
       %7D%0A
+%0A
         

reorder imports