Skip to content

Commit

Permalink
Merge branch 'feature/508847-QuitarFiltrosYOrdenacion' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
“Hector” committed Nov 21, 2024
2 parents 0ab57eb + 7890f0a commit 2be07ab
Show file tree
Hide file tree
Showing 45 changed files with 1,483 additions and 430 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package es.unican.gasolineras.activities.puntoInteres;
package es.unican.gasolineras.activities.main;

import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.Espresso.openActionBarOverflowOrOptionsMenu;
Expand All @@ -18,21 +18,17 @@
import androidx.test.espresso.Espresso;
import androidx.test.espresso.matcher.RootMatchers;
import androidx.test.ext.junit.rules.ActivityScenarioRule;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.platform.app.InstrumentationRegistry;

import org.hamcrest.Matcher;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

import dagger.hilt.android.testing.BindValue;
import dagger.hilt.android.testing.HiltAndroidRule;
import dagger.hilt.android.testing.HiltAndroidTest;
import dagger.hilt.android.testing.UninstallModules;
import es.unican.gasolineras.R;
import es.unican.gasolineras.activities.main.MainView;
import es.unican.gasolineras.injection.RepositoriesModule;
import es.unican.gasolineras.repository.AppDatabase;
import es.unican.gasolineras.repository.DbFunctions;
Expand Down Expand Up @@ -68,7 +64,7 @@ public void setUp() {
}

@Test
public void TestAnhadirPuntoInteres() {
public void TestAnhadirPuntoInteres() {

// Caso de exito
openActionBarOverflowOrOptionsMenu(context);
Expand Down Expand Up @@ -104,7 +100,7 @@ public void TestAnhadirPuntoInteres() {
Espresso.closeSoftKeyboard();

onView(withId(R.id.buttonGuardar)).perform(click());
onView(withText("Ya existe un punto de interés con ese nombre")).inRoot(RootMatchers.withDecorView(not(decorView))).check(matches(isDisplayed()));
onView(withText("Error: Punto interés existente")).inRoot(RootMatchers.withDecorView(not(decorView))).check(matches(isDisplayed()));

onView(withId(R.id.buttonCancelar)).perform(click());

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package es.unican.gasolineras.activities.common;
package es.unican.gasolineras.activities.main;

import static androidx.test.espresso.Espresso.onData;
import static androidx.test.espresso.Espresso.onView;
Expand Down Expand Up @@ -32,7 +32,6 @@
import dagger.hilt.android.testing.HiltAndroidTest;
import dagger.hilt.android.testing.UninstallModules;
import es.unican.gasolineras.R;
import es.unican.gasolineras.activities.main.MainView;
import es.unican.gasolineras.common.UtilsHorario;
import es.unican.gasolineras.injection.RepositoriesModule;
import es.unican.gasolineras.model.Gasolinera;
Expand Down
Loading

0 comments on commit 2be07ab

Please sign in to comment.