diff --git a/app/src/androidTest/java/com/a1/nextlocation/RouteDetailFragmentTest.java b/app/src/androidTest/java/com/a1/nextlocation/RouteDetailFragmentTest.java deleted file mode 100644 index b756bd8..0000000 --- a/app/src/androidTest/java/com/a1/nextlocation/RouteDetailFragmentTest.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.a1.nextlocation; - -import androidx.test.espresso.action.ViewActions; -import androidx.test.espresso.contrib.RecyclerViewActions; -import androidx.test.espresso.matcher.RootMatchers; -import androidx.test.espresso.matcher.ViewMatchers; -import androidx.test.rule.ActivityTestRule; - -import com.a1.nextlocation.fragments.LocationFragment; -import com.a1.nextlocation.fragments.RouteDetailFragment; -import com.a1.nextlocation.fragments.SettingsFragment; -import com.a1.nextlocation.fragments.StatisticFragment; - -import org.hamcrest.core.AllOf; -import org.hamcrest.core.Is; -import org.hamcrest.core.IsInstanceOf; -import org.junit.Rule; -import org.junit.Test; -import org.junit.runner.RunWith; - -import javax.inject.Inject; - -import static androidx.test.espresso.Espresso.*; -import static androidx.test.espresso.action.ViewActions.*; -import static androidx.test.espresso.assertion.ViewAssertions.*; -import static androidx.test.espresso.matcher.RootMatchers.isPlatformPopup; -import static androidx.test.espresso.matcher.ViewMatchers.*; -import static org.hamcrest.Matchers.allOf; -import static org.hamcrest.Matchers.*; -import static org.hamcrest.Matchers.is; - -public class RouteDetailFragmentTest { - - @Rule - public ActivityTestRule mActivityTestRule = new ActivityTestRule<>(MainActivity.class); - - @Test - public void clickBackButton() throws Exception{ - mActivityTestRule.getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.mainActivity, new RouteDetailFragment()).commit(); - onView(withId(R.id.routeDetailBackButton)).perform(click()); - onView(withId(R.id.homeFragment)).check(matches(isDisplayed())); - } -}